Smooth data loading without rerender on React #1095
Unanswered
maxmatyugin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am using your chart lib for React and trying to implement smooth data loading on scroll & drag like it is done on your web, where additional data is drawn without a rerender
I tried series.update(), but it seems that the method works only for the data that appeared later than already received data.
Also I tried timeScale().setVisibleRange() and timeScale().setVisibleLogicalRange(). The first one requires Time type and the second one is not exactly the same I need.
Do you have anything else how my task could be implemented?
Now it is implemented via onVisibleLogicalRangeChanged(). The data is loaded and then chart.timeScale().fitContent().
I need the component was not re-rendered on scroll or on drag.
Now it looks like this:
Expectations
Reality
Beta Was this translation helpful? Give feedback.
All reactions