diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts index dd74b2a963..81c08afa23 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts @@ -133,7 +133,9 @@ export class Gauge extends G2PlotChartView { 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