Code directly
$(function(){
// pv-uv echarts
var myChart = echarts.init(document.getElementById("puvcanvas"));
//
var option = {
title: {
text: "pv-uv"
},
tooltip: {
trigger: "axis"
},
legend: {
data:["pv","uv"]
},
xAxis: [{
type : "category",
boundaryGap : false,
data: ["0:00-0:59","1:00-1:59","2:00-2:59","3:00-3:59","4:00-4:59","5:00-5:59"]
}],
yAxis: [
{
type : "value"
}
],
series: [{
name: "pv",
type: "line",
data: [1000, 2000, 3000, 4000, 50000, 60000],
stack: ""
},{
name: "uv",
type: "line",
data: [1000, 2000, 3000, 4000, 50000, 60000],
stack: ""
}]
};
//
myChart.setOption(option);
});
normally, the pv and uv lines should overlap, but the following results appear. Is there anything wrong with the configuration