效果图:
解决方法图:
为了方便大家copy,代码如下:
`` yAxis : {
type : 'value',
axisLabel:{
formatter: function (value) {
var texts = [];
if(value==1){
texts.push('I');
}
else if (value==2) {
texts.push('II');
}
else if (value==3) {
texts.push('III');
}
else if(value==4){
texts.push('IV');
}
else if(value==5){
texts.push('V');
}
else if(value==6){
texts.push('劣V');
}else if(value==0){
texts.push('断流');
}
return texts;
}
},
},