Skip to content

Commit b7eefb2

Browse files
committed
fix: set legend position to top for BarCharts and LineCharts
1 parent c5937c6 commit b7eefb2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ui/src/components/app-charts/components/BarCharts.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function initChart() {
6464
valueFormatter: (value: any) => numberFormat(value),
6565
},
6666
legend: {
67+
top: 0,
6768
right: 0,
6869
itemWidth: 8,
6970
textStyle: {

ui/src/components/app-charts/components/LineCharts.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function initChart() {
6363
valueFormatter: (value: any) => numberFormat(value),
6464
},
6565
legend: {
66+
top: 0,
6667
right: 0,
6768
itemWidth: 8,
6869
textStyle: {

0 commit comments

Comments
 (0)