You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've noticed that when I add Angular/Material's BrowserAnimationsModule to the app's module imports, my chart (Force directed tree) is not disposed properly anymore (getting the Chart was not disposed warning) and is not rebuilt when changing to another component with the same chart in my single page app.
I'm using this.chart.dispose(); inside ngOnDestroy, which was working without the BrowserAnimationsModule. Also tried am4core.disposeAllCharts(); with no luck.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Hi,
I've tried using BrowserAnimationsModule again now (was using NoopAnimationsModule until now because of this issue) and it's working. The only major thing that was changed is the way I load the amCharts library - instead of importing it statically - I've dynamically imported all amcharts related libraries, with /* webpackChunkName: "chart" */ comment. This was done in order to overcome this issue - #1146 (comment)
Hi,
I've noticed that when I add Angular/Material's
BrowserAnimationsModule
to the app's module imports, my chart (Force directed tree) is not disposed properly anymore (getting theChart was not disposed
warning) and is not rebuilt when changing to another component with the same chart in my single page app.I'm using
this.chart.dispose();
insidengOnDestroy
, which was working without theBrowserAnimationsModule
. Also triedam4core.disposeAllCharts();
with no luck.Any thoughts?
The text was updated successfully, but these errors were encountered: