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
I have a time chart which covers a long time range, and a slider which, when slided by the user, sets the time scale min and max properties in order to change the plotted range.
Since #7793, I get very strange animations artefacts during the slide that were not present before.
Played around a bit. I see 2 options, either keep updating all the points, or dont animate the partial updates.
Latter can be achieved simply by using 'resize' (or 'none') as updade mode: https://jsfiddle.net/3rkmLyg5/
Is the preformance gain from partial updates desirable or would you rather disable that optimization? The drawing part could still be skipped even if all the points are updated.
Options:
add new option for disabling or enabling partial updates.
automatically determine if it would be feasible to do partial update (when that update is not going to be animated for any reason)
both of above, eg partialUpdates: true/false/'auto', defaulting to 'auto'
Tried to disable the partial update animation by calling chart.update('none'), I do not think this one can be acceptable from a UX point of view, because it makes the updates really choppy.
For my particular use case, updating all is ok because my number of points is not very high (about 400), so I do not think it is enough to really benefit from these optimisations.
However for a more general use case maybe automatically determining if we must do a full update (because the scale has change for example) is better, I do not know if it is easy to implement or not.
I have a time chart which covers a long time range, and a slider which, when slided by the user, sets the time scale
min
andmax
properties in order to change the plotted range.Since #7793, I get very strange animations artefacts during the slide that were not present before.
Fiddle to reproduce: https://jsfiddle.net/am2egz9k
The text was updated successfully, but these errors were encountered: