Merge pull request #6768 from ulleo/dev

fix: 对成柱状图维度错位
This commit is contained in:
ulleo 2023-11-20 18:12:08 +08:00 committed by GitHub
commit 91dd09c574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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,

View File

@ -226,6 +226,7 @@
/>
</el-form-item>
<el-form-item
v-if="chart.type && chart.type !== 'bidirectional-bar'"
:label="$t('chart.axis_label_rotate')"
class="form-item form-item-slider"
>