mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
heatmap: fix bucket labels shift
This commit is contained in:
parent
e0a874f677
commit
2a2675c1af
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user