fix:修改overview 柱状图只显示数量,以及显示省略号在前面
This commit is contained in:
@@ -210,7 +210,7 @@
|
|||||||
series: [],
|
series: [],
|
||||||
tooltip : {
|
tooltip : {
|
||||||
backgroundColor: "rgba(255, 255, 255, 0.66)",
|
backgroundColor: "rgba(255, 255, 255, 0.66)",
|
||||||
textStyle: {color: "#333"}
|
textStyle: {color: "#333"},
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
formatter: function(value) {
|
formatter: function(value) {
|
||||||
if (value.length > 15) {
|
if (value.length > 15) {
|
||||||
return value.substring(0, 11) + "...";
|
return "..."+ value.substring(value.length-12, value.length);
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1218,7 +1218,7 @@
|
|||||||
//return tooltip;
|
//return tooltip;
|
||||||
},
|
},
|
||||||
simpleFormatter(params) {
|
simpleFormatter(params) {
|
||||||
return `<div class="tooltip" style="min-width: unset;">${params.name}: ${params.value}</div>`;
|
return `<div class="tooltip" style="min-width: unset;">${params.value}</div>`;
|
||||||
},
|
},
|
||||||
assetTypeFormatter(params) {
|
assetTypeFormatter(params) {
|
||||||
return `<div class="tooltip" style="min-width: unset;">${params.name}: ${params.value}</div>`;
|
return `<div class="tooltip" style="min-width: unset;">${params.name}: ${params.value}</div>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user