There is my diagram :

Can you reproduce this in a codepen?
Can you reproduce this in a codepen?
Might be a little complicated, my whole chart is automated by database queries and twig variables (I work under Symfony 5). Tell me what else can I do ?
I have the same problem: Here is my code sandbox which reproduces it: https://codesandbox.io/s/react-apexcharts-bar-show-hide-serie-x35jt?file=/src/App.js
You just have to make the window small enough so that there are scroll bars, scroll to the bottom, activate/deactive legends. It scroll to the top each time the chart renders.
I am experiencing the same problem with one of my applications where I have a chart that updates on a timer. On every update, it scrolls the page to the top. (https://github.com/fredli74/smartcharge-dev/issues/159)
This was a bug introduced in Apexcharts version 3.19.3, my workaround has been pinning the version to 3.19.2 in my package.json file.
I tested it in your codesandbox and it seems to solve the click problem as well.
"apexcharts": "3.19.2",
Thanks for reproducing it. I will take a look soon.
Most helpful comment
Thanks for reproducing it. I will take a look soon.