feat:dashboards ruleBar Y轴 省略前面
This commit is contained in:
@@ -57,6 +57,14 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.option=chartConfig.getOption(this.chartType);
|
this.option=chartConfig.getOption(this.chartType);
|
||||||
|
if(this.chartType==='ruleBar'){
|
||||||
|
this.option.yAxis.axisLabel.formatter=function(value) {
|
||||||
|
if (value.length > 12) {
|
||||||
|
return "..."+ value.substring(value.length-12, value.length);
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(this.showToolbox == false){
|
if(this.showToolbox == false){
|
||||||
//this.option.grid.top = 10;
|
//this.option.grid.top = 10;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user