From b674b9dba202f50a0f5dd23cdda098633d25b054 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 27 Jun 2017 22:23:22 +0200 Subject: [PATCH] heatmap: small fix for tooltip auto decimals Closes #8717 --- public/app/plugins/panel/heatmap/heatmap_tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/heatmap/heatmap_tooltip.ts b/public/app/plugins/panel/heatmap/heatmap_tooltip.ts index 531ed8ca5b2..5ec0a8fa308 100644 --- a/public/app/plugins/panel/heatmap/heatmap_tooltip.ts +++ b/public/app/plugins/panel/heatmap/heatmap_tooltip.ts @@ -97,7 +97,7 @@ export class HeatmapTooltip { // legend and tooltip gets one more decimal precision // than graph legend ticks let decimals = (this.panelCtrl.decimals || -1) + 1; - valueFormatter = this.valueFormatter(this.panel.tooltipDecimals, this.panelCtrl.scaledDecimals + 2); + valueFormatter = this.valueFormatter(decimals, this.panelCtrl.scaledDecimals + 2); } let tooltipHtml = `
${time}