怎么隐藏y轴,包括刻度
配置项如下
option = {
title: {
text: 'Awesome Chart'
},
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis:{
axisLabel: {
textStyle: {
color: '#df3434'
}
}
},
tooltips: {
mode: 'index',
intersect: false
},
hover: {
mode: 'nearest',
intersect: true
},
legend: {
display: false
},
scales: {
xAxes: [{
show: false,
gridLines: {
color: "rgba(255, 255, 255, 0)"
},
splitLine:{
show:false
}
}],
yAxes: [{
show: false,
gridLines: {
scaleShowLabels: true,
color: "rgba(255, 255, 255, 0)"
},
axisTick:{
show:false
}
}]
},
series: [{
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310]
}]
};