forked from github/dataease
Merge pull request #8263 from dataease/pr@dev-v2@fix_horizontal_bar_axis_format
fix(视图): 横向柱状图横轴格式化不显示
This commit is contained in:
commit
d6ab331b71
@ -26,7 +26,8 @@ export class Bar extends G2PlotChartView<ColumnOptions, Column> {
|
|||||||
propertyInner = {
|
propertyInner = {
|
||||||
...BAR_EDITOR_PROPERTY_INNER,
|
...BAR_EDITOR_PROPERTY_INNER,
|
||||||
'label-selector': ['vPosition', 'seriesLabelFormatter'],
|
'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 = {
|
protected baseOptions: ColumnOptions = {
|
||||||
xField: 'field',
|
xField: 'field',
|
||||||
|
@ -37,8 +37,7 @@ export const BAR_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
|||||||
'splitLine',
|
'splitLine',
|
||||||
'axisForm',
|
'axisForm',
|
||||||
'axisLabel',
|
'axisLabel',
|
||||||
'position',
|
'position'
|
||||||
'axisLabelFormatter'
|
|
||||||
],
|
],
|
||||||
'title-selector': [
|
'title-selector': [
|
||||||
'title',
|
'title',
|
||||||
|
@ -34,7 +34,8 @@ export class HorizontalBar extends G2PlotChartView<BarOptions, Bar> {
|
|||||||
propertyInner = {
|
propertyInner = {
|
||||||
...BAR_EDITOR_PROPERTY_INNER,
|
...BAR_EDITOR_PROPERTY_INNER,
|
||||||
'label-selector': ['hPosition', 'seriesLabelFormatter'],
|
'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]
|
axis: AxisType[] = [...BAR_AXIS_TYPE]
|
||||||
protected baseOptions: BarOptions = {
|
protected baseOptions: BarOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user