mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
heatmap: calculate bucket size automatically for ES histogram
This commit is contained in:
@@ -449,7 +449,7 @@ export default function link(scope, elem, attrs, ctrl) {
|
||||
|
||||
if (panel.yAxis.logBase !== 1) {
|
||||
let base = panel.yAxis.logBase;
|
||||
let splitFactor = panel.yAxis.splitFactor || 1;
|
||||
let splitFactor = data.yBucketSize || 1;
|
||||
yGridSize = Math.floor((yScale(1) - yScale(base)) / splitFactor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user