Remove an Existing Chart from a Page

It is essential to remove content that is no longer used from a page. It helps keep memory consumption to a minimum and keeps the UI smooth even when there are several elements on the page.

Chart objects created as part of FusionCharts Suite XT support the dispose method, this completely cleans the memory space and all references to the chart and its data are removed.

This is how you can use the method on a chart object revenueChart .

revenueChart.dispose();

Shown below is a simple column 2D chart that is disposed at runtime when a button is clicked.

FusionCharts should load here..

Removing a chart this way completely removes the chart object from memory, if you need to display the same chart again then it is redrawn from scratch.