From dda1097ca46ad9bd23fcb0fc877f4604758250b3 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 9 Dec 2024 19:09:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E7=9B=98=E6=9C=80=E5=A4=A7=E5=80=BC=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/charts/others/gauge.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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