Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete an amCharts Chart

Tags:

amcharts

I'm using the free version of AmCharts, and I have a simple question - how do you delete a Chart after it has been loaded? I've searched the internet, but haven't come up on much.

like image 203
user3413723 Avatar asked Feb 04 '15 19:02

user3413723


People also ask

How do I dispose of chart amCharts?

That's easy: you need to dispose the chart instance that is not needed anymore. We can do that by calling chart's dispose() method: TypeScript / ES6 JavaScript ... chart.

How do I remove amCharts 4 logo from chart?

The license of Version 4 says the following: "You do not disable, hide or alter the branding link which is displayed on all the content generated by amCharts software unless you provide some other adequately prominent attribution to amCharts." This means you are ALLOWED to remove the attribution completely if you have ...

How do I hide labels in amCharts?

Hiding labels We can hide or show any element in amCharts 4 using their hide() or show() methods respectively.


1 Answers

If you want to destroy the chart object, at all, call:

chart.clear();

and then null the chart variable:

chart = null;
like image 148
zeroin Avatar answered Sep 18 '22 13:09

zeroin