Explorar o código

heatmap: small fix for tooltip auto decimals

Closes #8717
Daniel Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
b674b9dba2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/plugins/panel/heatmap/heatmap_tooltip.ts

+ 1 - 1
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 = `<div class="graph-tooltip-time">${time}</div>