var myChart = echarts.init(document.getElementById("divechart1"));
var option = {
title: {
text: '里程量'
},
tooltip: { trigger: "axis", formatter: '{b}<br>里程量:{c}' },
xAxis: [{ type: "category", data: json.x }],
yAxis: [{ type: "value" }],
legend: {
data: ['KM']
},
series: [
{ type: "line", data: json.y }
]
};
myChart.setOption(option);
//location.reload();
window.onresize = myChart.resize;

 

https://blog.csdn.net/lvkelly/article/details/53745956

相关文章:

  • 2021-10-05
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2023-03-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-01
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案