From 2a2675c1afaafda40c2ac3de8637c3f857723b8f Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Thu, 22 Feb 2018 16:54:28 +0300 Subject: [PATCH] heatmap: fix bucket labels shift --- public/app/plugins/panel/heatmap/heatmap_ctrl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/plugins/panel/heatmap/heatmap_ctrl.ts b/public/app/plugins/panel/heatmap/heatmap_ctrl.ts index df07c60ff28..54854ac6a4e 100644 --- a/public/app/plugins/panel/heatmap/heatmap_ctrl.ts +++ b/public/app/plugins/panel/heatmap/heatmap_ctrl.ts @@ -141,6 +141,8 @@ export class HeatmapCtrl extends MetricsPanelCtrl { heatmapStats = this.parseHistogramSeries(this.series); bucketsData = histogramToHeatmap(this.series); tsBuckets = _.map(this.series, 'label'); + // Add empty bottom bucket label + tsBuckets = [''].concat(tsBuckets); // Calculate bucket size based on ES heatmap data let xBucketBoundSet = _.map(_.keys(bucketsData), key => Number(key));