
設定了最小值,就這樣了,如果最小值寫“95%”,就不會有問題,但是y軸刻度就不顯示了,echarts版本為4.9.0
yAxis: [
{
type: 'value',
min:95,
max:100,
splitLine: {
//網格線
lineStyle: {
type: 'dashed' //設定網格線型別 dotted:虛線 solid:實線
},
show: true //隱藏或顯示
},
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: '#D3D3D3'
}
},
axisLabel: {
color: '#98A5BB',
formatter: '{value}%'
}
}
],
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/134176.html
標籤:其他
