Merge pull request #11575 from alexanderzobnin/fix-11498

Histogram: fix invisible highest value bucket
This commit is contained in:
Marcus Efraimsson 2018-04-30 16:32:21 +02:00 committed by GitHub
commit b0349bc795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {