mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
refactor(图表): 堆叠柱条图标签默认显示指标
This commit is contained in:
@@ -638,6 +638,12 @@ export class StackBar extends Bar {
|
||||
return setUpStackSeriesColor(chart, data)
|
||||
}
|
||||
|
||||
setupDefaultOptions(chart: ChartObj): ChartObj {
|
||||
const chartTmp = super.setupDefaultOptions(chart)
|
||||
chartTmp.customAttr.label.showStackQuota = true
|
||||
return chartTmp
|
||||
}
|
||||
|
||||
protected setupOptions(chart: Chart, options: ColumnOptions): ColumnOptions {
|
||||
return flow(
|
||||
this.configTheme,
|
||||
|
||||
@@ -585,6 +585,12 @@ export class HorizontalStackBar extends HorizontalBar {
|
||||
return optionTmp
|
||||
}
|
||||
|
||||
setupDefaultOptions(chart: ChartObj): ChartObj {
|
||||
const chartTmp = super.setupDefaultOptions(chart)
|
||||
chartTmp.customAttr.label.showStackQuota = true
|
||||
return chartTmp
|
||||
}
|
||||
|
||||
protected setupOptions(chart: Chart, options: BarOptions): BarOptions {
|
||||
return flow(
|
||||
this.configTheme,
|
||||
|
||||
Reference in New Issue
Block a user