mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix(图表): 修复仪表盘最大值为空的问题
This commit is contained in:
parent
d0f193d4f7
commit
dda1097ca4
@ -133,7 +133,9 @@ export class Gauge extends G2PlotChartView<GaugeOptions, G2Gauge> {
|
||||
max = misc.gaugeMax ? misc.gaugeMax : DEFAULT_MISC.gaugeMax
|
||||
} else {
|
||||
min = misc.gaugeMin || misc.gaugeMin === 0 ? misc.gaugeMin : DEFAULT_MISC.gaugeMin
|
||||
max = misc.gaugeMax ? misc.gaugeMax : DEFAULT_MISC.gaugeMax
|
||||
max = misc.gaugeMax
|
||||
? misc.gaugeMax
|
||||
: chart.data?.series[chart.data?.series.length - 1]?.data[0]
|
||||
}
|
||||
startAngle = (misc.gaugeStartAngle * Math.PI) / 180
|
||||
endAngle = (misc.gaugeEndAngle * Math.PI) / 180
|
||||
|
Loading…
Reference in New Issue
Block a user