fix(视图): 横向柱状图横轴格式化不显示

This commit is contained in:
wisonic-s 2024-03-01 12:34:13 +08:00
parent f9e2a0293c
commit f124fe7690
3 changed files with 5 additions and 4 deletions

View File

@ -26,7 +26,8 @@ export class Bar extends G2PlotChartView<ColumnOptions, Column> {
propertyInner = {
...BAR_EDITOR_PROPERTY_INNER,
'label-selector': ['vPosition', 'seriesLabelFormatter'],
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter']
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'],
'y-axis-selector': [...BAR_EDITOR_PROPERTY_INNER['y-axis-selector'], 'axisLabelFormatter']
}
protected baseOptions: ColumnOptions = {
xField: 'field',

View File

@ -37,8 +37,7 @@ export const BAR_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
'splitLine',
'axisForm',
'axisLabel',
'position',
'axisLabelFormatter'
'position'
],
'title-selector': [
'title',

View File

@ -34,7 +34,8 @@ export class HorizontalBar extends G2PlotChartView<BarOptions, Bar> {
propertyInner = {
...BAR_EDITOR_PROPERTY_INNER,
'label-selector': ['hPosition', 'seriesLabelFormatter'],
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter']
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter'],
'x-axis-selector': [...BAR_EDITOR_PROPERTY_INNER['x-axis-selector'], 'axisLabelFormatter']
}
axis: AxisType[] = [...BAR_AXIS_TYPE]
protected baseOptions: BarOptions = {