swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Infinite loading when refreshing the page for multi ngx-charts-bar-horizontal #1940

Open Salimify opened 4 months ago

Salimify commented 4 months ago

Describe the bug There is an issue happening when you have a multiple Horizontal bar charts displaying in one page. It seems to be causing a sort of a memory leak. It happens exactly when you have [yAxis] and [xAxis] set to "true".

To Reproduce Steps to reproduce the behavior:

  1. Render multiple ngx-charts-bar-horizontal toghether with different data inside one single page
  2. refresh the page (preferabilly multiple times, each time will be slower)

Expected behavior Multiple charts can be shown in the same page with different data, while also showing xAxis and yAxis. When refreshing page, it should also show properly

Screenshots If applicable, add screenshots to help explain your problem.

ngx-charts version "@swimlane/ngx-charts": "^20.5.0",

eric-gitta-moore commented 2 months ago

Please provide a minimum reproducible demo