From 1de14ea2570117928bae6b5bad899f7074cd8ccf Mon Sep 17 00:00:00 2001 From: nikki-kiga <42276368+nikki-kiga@users.noreply.github.com> Date: Thu, 22 Jul 2021 14:09:43 -0700 Subject: [PATCH] check for bar value visibility never (#37122) --- public/app/plugins/panel/barchart/bars.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/plugins/panel/barchart/bars.ts b/public/app/plugins/panel/barchart/bars.ts index 70db4071150..40f693aabc3 100644 --- a/public/app/plugins/panel/barchart/bars.ts +++ b/public/app/plugins/panel/barchart/bars.ts @@ -192,6 +192,9 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) { // uPlot hook to draw the labels on the bar chart. const draw = (u: uPlot) => { + if (showValue === BarValueVisibility.Never) { + return; + } // pre-cache formatted labels let texts = Array(barRects.length); let labelOffset = LABEL_OFFSET_MAX;