-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clear chart in angular chart #230
Comments
Hi @vigneshsdev, if I understand your problem correctly, you want to clear a chart after it has been drawn. This can be done by using Hope this helps! |
Hi @FERNman and in component.ts
this solution works for me |
I don't see #304 reports a memory leak. Here is my (kludgy) code to call the underlying
|
How to clear a chart which is already loaded?
usage:
<div class="col-12" *ngIf="areaChartData" #stockChart> <google-chart #chart [type]="areaChartData.type" [data]="areaChartData.data" [columns]="areaChartData.columnNames" [options]="areaChartData.options" [width]="stockChart.offsetWidth" [height]="areaChartData.height"> </google-chart> </div>
there is a selection box for company. whenever i change the company the data will load dynamically.
but if there is no data in the company. how can i clear the chart dynamically
data loading code
however i'm creating a new chart instead of clearing
is there is another way to clear the chart
Angular version
The text was updated successfully, but these errors were encountered: