fix:修改overview 柱状图只显示数量,以及显示省略号在前面

This commit is contained in:
zhangyu
2020-11-10 17:42:53 +08:00
parent 8a41b47794
commit 6b8dc5828a
2 changed files with 3 additions and 3 deletions

View File

@@ -210,7 +210,7 @@
series: [],
tooltip : {
backgroundColor: "rgba(255, 255, 255, 0.66)",
textStyle: {color: "#333"}
textStyle: {color: "#333"},
},
xAxis: {
type: 'value',
@@ -239,7 +239,7 @@
fontSize: 12,
formatter: function(value) {
if (value.length > 15) {
return value.substring(0, 11) + "...";
return "..."+ value.substring(value.length-12, value.length);
}
return value;
},