Commit 2a2675c1 by Alexander Zobnin

heatmap: fix bucket labels shift

parent e0a874f6
...@@ -141,6 +141,8 @@ export class HeatmapCtrl extends MetricsPanelCtrl { ...@@ -141,6 +141,8 @@ export class HeatmapCtrl extends MetricsPanelCtrl {
heatmapStats = this.parseHistogramSeries(this.series); heatmapStats = this.parseHistogramSeries(this.series);
bucketsData = histogramToHeatmap(this.series); bucketsData = histogramToHeatmap(this.series);
tsBuckets = _.map(this.series, 'label'); tsBuckets = _.map(this.series, 'label');
// Add empty bottom bucket label
tsBuckets = [''].concat(tsBuckets);
// Calculate bucket size based on ES heatmap data // Calculate bucket size based on ES heatmap data
let xBucketBoundSet = _.map(_.keys(bucketsData), key => Number(key)); let xBucketBoundSet = _.map(_.keys(bucketsData), key => Number(key));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment