Commit b0349bc7 by Marcus Efraimsson Committed by GitHub

Merge pull request #11575 from alexanderzobnin/fix-11498

Histogram: fix invisible highest value bucket
parents fa7d7ed5 b16626c3
......@@ -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