-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When using the responsive
option in ApexCharts, resizing the browser window repeatedly and aggressively causes a memory leak. Charts without the responsive
config do not have this issue.
In the provided reproduction, only chart1
, chart30
, and chart2
have the responsive
configuration. Removing these charts (or just removing their responsive
option) resolves the problem, confirming that the issue lies within how responsive behavior is handled.
Steps to Reproduce
- Open the CodePen linked below.
- Continuously resize the browser window back and forth (small → large → small).
- Monitor the memory usage in Firefox Developer Tools (Performance or Memory tab).
- Observe that memory usage increases over time and is not reclaimed, indicating a leak.
Expected Behavior
Charts should update responsively without leaking memory, even during frequent or extreme window resizes.
Actual Behavior
Charts with responsive
configuration cause memory usage to grow continuously with each resize. This can lead to sluggish performance or browser tab crashes over time.
Screenshots
Reproduction Link
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working