Commit b16626c3 by Alexander Zobnin Committed by Marcus Efraimsson

graph histogram: fix invisible highest value bucket

parent 4f7791b9
......@@ -443,7 +443,8 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
// Expand ticks for pretty view
min = Math.floor(min / tickStep) * tickStep;
max = Math.ceil(max / tickStep) * tickStep;
// 1.01 is 101% - ensure we have enough space for last bar
max = Math.ceil(max * 1.01 / tickStep) * tickStep;
ticks = [];
for (let i = min; i <= max; i += tickStep) {
......
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