From ff6919173af8626e6999dbc7a038bba94d786343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 27 Jul 2020 20:26:22 +0200 Subject: [PATCH] Gauge: Fix display name showing for only single series (#26617) --- public/app/plugins/panel/bargauge/BarGaugePanel.tsx | 4 ++-- public/app/plugins/panel/gauge/GaugePanel.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx index e8f8b6ba7bf..f25be44d92b 100644 --- a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx +++ b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx @@ -21,7 +21,7 @@ export class BarGaugePanel extends PureComponent> { valueProps: VizRepeaterRenderValueProps, menuProps: DataLinksContextMenuApi ): JSX.Element => { - const { options } = this.props; + const { options, fieldConfig } = this.props; const { value, alignmentFactors, orientation, width, height, count } = valueProps; const { field, display, view, colIndex } = value; const { openMenu, targetClassName } = menuProps; @@ -33,7 +33,7 @@ export class BarGaugePanel extends PureComponent> { return ( > { valueProps: VizRepeaterRenderValueProps, menuProps: DataLinksContextMenuApi ): JSX.Element => { - const { options } = this.props; + const { options, fieldConfig } = this.props; const { width, height, count, value } = valueProps; const { field, display } = value; const { openMenu, targetClassName } = menuProps; return (