mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(图表): 修复子弹图提示区间格式化无效
This commit is contained in:
@@ -394,9 +394,11 @@ export class BulletGraph extends G2PlotChartView<G2BulletOptions, G2Bullet> {
|
||||
}
|
||||
})
|
||||
const ranges = data.ranges
|
||||
const rangeFormatterCfg =
|
||||
formatterMap['ranges']?.formatterCfg ?? rangeFormatter?.formatterCfg
|
||||
ranges.forEach((range, index) => {
|
||||
const value = isDynamic
|
||||
? valueFormatter(parseFloat(data.minRanges[0]), rangeFormatter.formatterCfg)
|
||||
? valueFormatter(parseFloat(data.minRanges[0]), rangeFormatterCfg)
|
||||
: (range as string)
|
||||
let name = ''
|
||||
let color: string | string[]
|
||||
|
||||
Reference in New Issue
Block a user