heatmap: fix bucket labels shift

pull/11087/head
Alexander Zobnin 7 years ago
parent e0a874f677
commit 2a2675c1af
  1. 2
      public/app/plugins/panel/heatmap/heatmap_ctrl.ts

@ -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));

Loading…
Cancel
Save