Replies: 3 comments
-
It updates the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, that makes sense. Is the best way around that to create completely separate config objects for each chart? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, Object.assing is a shallow copy, so the scales are queal. But you ciykd just place your current config into an function and return that. That way you get a new copy for every call. function createConfig() { const sectorEFTs_config = createConfig(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a page with several ChartJS scatter charts. When I scroll on one chart and then move to another when I scroll the second chart it jumps to the zoom level of the first chart. Seems like some state is being shared between them but I am not sure where.
I am using the following imports
I do share a config object across the various charts so I am not sure if the zoom state is being persisted in the config object. Below is a snippet showing my configuration and instantiation of one of the charts.
Please let me know if using a shared config breaks how the zoom stores data or if there is a possible workaround.
Beta Was this translation helpful? Give feedback.
All reactions