You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some date of mine are graphed using a line graph and a time scale. I end up with this graph:
As you can see, the July tick is missing.
The related code in scale.time.js seems to be:
if (roundedEnd.diff(me.lastTick, me.tickUnit, true) !== 0) {
// Do not use end of because we need me to be in the next time unit
me.lastTick = me.getMomentStartOf(me.lastTick.add(1, me.tickUnit));
}
Patching it to:
if (roundedEnd.diff(this.lastTick, this.tickUnit, true) >= 0) {
// Do not use end of because we need this to be in the next time unit
this.lastTick = this.getMomentStartOf(this.lastTick.add(1, this.tickUnit));
} else if (roundedEnd.diff(this.lastTick, this.tickUnit, true) < 0) {
this.lastTick = roundedEnd;
}
Some date of mine are graphed using a line graph and a time scale. I end up with this graph:
As you can see, the July tick is missing.
The related code in
scale.time.js
seems to be:Patching it to:
gave me the expected graph.
JsFiddle showing the issue: https://jsfiddle.net/Regisc/kbdn6dpp/
The text was updated successfully, but these errors were encountered: