From f8c8f2ec2c1824fc002a4f273c7b1a4b6b1e4241 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Fri, 14 Dec 2018 14:18:18 +0100 Subject: [PATCH] gauge working without thresholds --- public/app/viz/Gauge.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/app/viz/Gauge.tsx b/public/app/viz/Gauge.tsx index e6e04e8b5de..73e5a6c1ac8 100644 --- a/public/app/viz/Gauge.tsx +++ b/public/app/viz/Gauge.tsx @@ -108,6 +108,7 @@ export class Gauge extends PureComponent { draw() { const { + baseColor, maxValue, minValue, timeSeries, @@ -147,12 +148,10 @@ export class Gauge extends PureComponent { }), { value: maxValue, - color: BasicGaugeColor.Red, + color: thresholds.length > 0 ? BasicGaugeColor.Red : baseColor, }, ]; - console.log(formattedThresholds); - const options = { series: { gauges: {