mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
fix(图表-仪表盘): 修复百分比刻度显示不正确的问题
This commit is contained in:
parent
186339cc82
commit
1133f0863b
@ -266,8 +266,7 @@ export class Gauge extends G2PlotChartView<GaugeOptions, G2Gauge> {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
if (gaugePercentLabel === false) {
|
if (gaugePercentLabel === false) {
|
||||||
const val = v === '0' ? min : v === '1' ? max : min + (max - min) * v
|
return v === '0' ? min : v === '1' ? max : min + (max - min) * v
|
||||||
return valueFormatter(val, labelFormatter)
|
|
||||||
}
|
}
|
||||||
return v === '0' ? v : v * 100 + '%'
|
return v === '0' ? v : v * 100 + '%'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user