apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.26k stars 1.29k forks source link

Performance issue when hiding series by click on legend for charts with large number of datapoints #4534

Closed Au6ojlut closed 3 months ago

Au6ojlut commented 3 months ago

Steps to Reproduce

  1. Open https://apexcharts.com/features/ and scroll to High Performance section

  2. Choose 25000 points and click render image

  3. Click on legend series-1

  4. Page stops responding image image


Looks like setAttribute is called for each dot and it cost a lot. firefox image

chrome image

rosco54 commented 3 months ago

@junedchhipa I believe this is a duplicate of #4488, which was fixed by PR #4483. If so, it is fixed in release 3.49.2. Following the steps to reproduce since that release shows that chart to be performing as expected.

junedchhipa commented 3 months ago

Yes, this is fixed and works as expected.