I encountered an issue with my charts while trying to implement zoom functionality. Initially, I have a chart displaying random data and when I add another chart on top of it, the zooming feature copies data from the second chart onto the first one instead of working independently.
If you check out the example provided, you'll see a blue chart. Clicking the button adds a green chart on top of it. When attempting to zoom in, the blue chart seems to disappear, but it's actually just hidden behind the green one, despite both charts having distinct data sets.
Check out the example: https://codesandbox.io/s/31lz6zrln5
Any suggestions or solutions would be greatly appreciated!
Warm regards, Mirco