heatmap: calculate bucket size automatically for ES histogram

This commit is contained in:
Alexander Zobnin
2017-03-31 12:51:43 +03:00
parent cb136c07b8
commit b18ed0b98f
3 changed files with 33 additions and 34 deletions

View File

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