graph histogram: fix invisible highest value bucket

pull/11575/head
Alexander Zobnin 7 years ago committed by Marcus Efraimsson
parent 4f7791b9fa
commit b16626c3b5
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A
  1. 3
      public/app/plugins/panel/graph/graph.ts

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

Loading…
Cancel
Save