From 3349d6b89b1918068165968209e321fff9b62cb1 Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 20 Nov 2023 18:10:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E6=88=90=E6=9F=B1=E7=8A=B6?= =?UTF-8?q?=E5=9B=BE=E7=BB=B4=E5=BA=A6=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #6745 --- core/frontend/src/views/chart/chart/common/common_antv.js | 5 +++++ .../chart/components/componentStyle/XAxisSelectorAntV.vue | 1 + 2 files changed, 6 insertions(+) diff --git a/core/frontend/src/views/chart/chart/common/common_antv.js b/core/frontend/src/views/chart/chart/common/common_antv.js index 111bf2bf7c..7cd5da6ff1 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -697,6 +697,11 @@ export function getXAxis(chart) { } } : null + if (a.axisLabel.show && chart.type === 'bidirectional-bar') { + label.rotate = 0 + label.style.textAlign = 'start' + } + axis = { position: transAxisPosition(chart, a), title: title, diff --git a/core/frontend/src/views/chart/components/componentStyle/XAxisSelectorAntV.vue b/core/frontend/src/views/chart/components/componentStyle/XAxisSelectorAntV.vue index fd847622fc..8a20a91246 100644 --- a/core/frontend/src/views/chart/components/componentStyle/XAxisSelectorAntV.vue +++ b/core/frontend/src/views/chart/components/componentStyle/XAxisSelectorAntV.vue @@ -226,6 +226,7 @@ />