Ngx-charts: Chart is increasing continuously on window resize.

Created on 8 May 2020  路  4Comments  路  Source: swimlane/ngx-charts

Whenever the window is resized the height is getting increased dynamically and I am unable to provide max height to the chart.

Bug

Most helpful comment

Please provide a fix for the same either by calculating the height of the graph according to the screen size or any other better fix.

All 4 comments

Ditto. On resize, or on data changes the chart grows without limit. I just looked at #755, so this has been going on for 2 years without a fix. Guess I need a hew chart library. extremely frustrating.

Please provide a fix for the same either by calculating the height of the graph according to the screen size or any other better fix.

Not the best solution but as a temporary workaround you can force the chart's container to re-render when the window is resized which resets the height.

Was this page helpful?
0 / 5 - 0 ratings