Skip to content

Commit 4f88f3b

Browse files
committed
fix echart legend width
1 parent 0d1a25f commit 4f88f3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ui/src/view/index/components/chart.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
top: 20,
8484
bottom: 20,
8585
selectedMode: 'multiple',
86+
formatter: function (name) {
87+
return echarts.format.truncateText(name, 280, '14px Microsoft Yahei', '');
88+
},
89+
tooltip: {
90+
show: true,
91+
}
8692
},
8793
grid: {
8894
left: 100,

0 commit comments

Comments
 (0)