swimlane / ngx-charts

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

horizontal bar chart rezise after DOM initialisation #1656

Open HugoGybels opened 3 years ago

HugoGybels commented 3 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Load a basic Horizontal bar chart
  2. Create a lot of div in this page (~10k)
  3. See se resize happening 10sec after first chart view

Expected behavior An event to notify readyness or resize on first render

Screenshots

Before DOM initialisation :

image

After DOM initialisation

image

Demo https://swimlane-normalized-horizontal-bar-chart-ggfmjz.stackblitz.io/

ngx-charts version 10.1.0

razzeee commented 2 years ago

Seems to at least also affect the vertical one. I'm also seeing it without data.