Skip to content
Snippets Groups Projects
Commit 97ff3dea authored by mashazyu's avatar mashazyu
Browse files

Fixes extra horizontal grid line on chart

parent 08d18c12
No related branches found
No related tags found
No related merge requests found
......@@ -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 }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment