效果如图:
代码:
yAxis: [
{
type: 'value',
name:"%",
max:100,//最大值
splitNumber:5,//分割成几段
minInterval:25,//间距
axisLine: {
show: true,
lineStyle: {
color: '#fff'
}
},
axisLabel: {
formatter: '{value}'
},
//去除横向分割线
splitLine: {
show: false
},
//坐标轴刻度
axisTick: {
show: true,
},
}
]