diff --git a/components/helpers/chart.js b/components/helpers/chart.js index 80b755196654c5df934fe583a1f50963ba0fc256..318bd672dcf9ad2053eb7ca93fc55972ce00d28a 100644 --- a/components/helpers/chart.js +++ b/components/helpers/chart.js @@ -21,7 +21,7 @@ function getTickConfig() { //Add 1 tick above the max value to display on chart const scaleMax = scaleObservable.value.max + unit const scaleMin = scaleObservable.value.min - unit - const numberOfTicks = (scaleMax - scaleMin) / unit + 1 + const numberOfTicks = Math.round((scaleMax - scaleMin) / unit + 1) return { numberOfTicks, scaleMax, scaleMin, unit } }