fix(图表-对称条形图): 修复无法改变纵轴标签文本颜色及大小的问题

This commit is contained in:
jianneng-fit2cloud 2024-07-31 13:19:45 +08:00
parent e2672e0648
commit ba1ab99322

View File

@ -61,7 +61,7 @@ export class BidirectionalHorizontalBar extends G2PlotChartView<
propertyInner = { propertyInner = {
'background-overall-component': ['all'], 'background-overall-component': ['all'],
'basic-style-selector': ['colors', 'alpha', 'gradient', 'layout'], 'basic-style-selector': ['colors', 'alpha', 'gradient', 'layout'],
'x-axis-selector': ['color', 'fontSize', 'position', 'axisLabel', 'axisLine', 'splitLine'], 'x-axis-selector': ['position', 'axisLabel', 'axisLine', 'splitLine'],
'y-axis-selector': [ 'y-axis-selector': [
'name', 'name',
'position', 'position',
@ -221,7 +221,7 @@ export class BidirectionalHorizontalBar extends G2PlotChartView<
return tmpOptions return tmpOptions
} }
if (tmpOptions.xAxis.label) { if (tmpOptions.xAxis.label) {
tmpOptions.xAxis.label.style = {} delete tmpOptions.xAxis.label.style.textAlign
} }
return tmpOptions return tmpOptions
} }