

图表渲染数据很多 看不明显,可以采用echarts的 dataZoom属性
yAxis: [
{
type: 'value',
min: 'dataMin',
max: 'dataMax',
splitLine: false,
axisLabel: {
color: '#ccc', //刻度线标签颜色
formatter: function(value, index) {
return value.toFixed(2)
},
},
},
],
dataZoom: [
{
type: 'inside',
start: 0,
end: 100,
},
],
series: [
{
type: 'line',
color: '#11d1e1',
// smooth: true, //设置折线图平滑
data: [],
},
],
具体配置参考官网 https://echarts.apache.org/zh/api.html#%2Fsearch%2FdataZoom