如题,目前是这样的↓
// line chart init
var myLineChart = new Chart(lineChart, {
type: 'line',
data: lineData,
options: {
legend: {
display: false
},
scales: {
xAxes: [{
ticks: {
fontSize: '11',
fontColor: '#969da5'
},
gridLines: {
color: 'rgba(0,0,0,0.05)',
zeroLineColor: 'rgba(0,0,0,0.05)'
}
}],
yAxes: [{
display: false,
ticks: {
beginAtZero: true,
max: 65
}
}]
}
}
});
按理说 你直接用鼠标滚轮滚动就好了吧?
https://www.echartsjs.com/examples/zh/editor.html?c=line-aqi