share a single timestamp array between all graphData objects

This commit is contained in:
Nick Krecklow
2020-05-11 18:12:29 -05:00
parent 59ec7d151f
commit c2f6d04e72
10 changed files with 100 additions and 52 deletions

View File

@ -12,7 +12,7 @@ export class RelativeScale {
const ticks = (scaledMax - scaledMin) / scale
if (ticks + 1 <= tickCount) {
if (ticks < tickCount + 1) {
return [scaledMin, scaledMax, scale]
} else {
// Too many steps between min/max, increase factor and try again