Skip to content
Snippets Groups Projects
Commit 45bc9f6c authored by bl00dymarie's avatar bl00dymarie
Browse files

Merge branch '468-removes-extra-grid-line-on-temperature-chart' into 'rebased-redesign'

Fixes extra horizontal grid line on chart

See merge request bloodyhealth/drip!325
parents 08d18c12 97ff3dea
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