mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
refactor(图表): 优化对称条形图默认样式
This commit is contained in:
@@ -872,6 +872,24 @@ export class BidirectionalHorizontalBar extends G2ChartView {
|
||||
return options
|
||||
}
|
||||
|
||||
setupDefaultOptions(chart: ChartObj): ChartObj {
|
||||
chart.customStyle.yAxis = {
|
||||
...chart.customStyle.yAxis,
|
||||
position: 'left'
|
||||
}
|
||||
chart.customStyle.yAxisExt = {
|
||||
...chart.customStyle.yAxisExt,
|
||||
position: 'left',
|
||||
splitLine: chart.customStyle.yAxis.splitLine
|
||||
}
|
||||
chart.customAttr.label = {
|
||||
...chart.customAttr.label,
|
||||
position: 'right'
|
||||
}
|
||||
chart.customAttr.basicStyle.layout = 'horizontal'
|
||||
return chart
|
||||
}
|
||||
|
||||
protected setupOptions(chart: Chart, options: G2Spec) {
|
||||
return flow(
|
||||
this.configBasicStyle,
|
||||
|
||||
Reference in New Issue
Block a user