mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
graph histogram: fix invisible highest value bucket
This commit is contained in:
parent
4f7791b9fa
commit
b16626c3b5
@ -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…
Reference in New Issue
Block a user