FERNman / angular-google-charts

A wrapper for the Google Charts library written in Angular.
Other
276 stars 107 forks source link

how to clear table in the latest api? #281

Closed xkx9431 closed 2 months ago

xkx9431 commented 2 years ago

what change should make this api correct?, I have upgrade the package version from ^1.1.0 to ^2.2.0 and this will cause a build error.

    @ViewChild('ganttChart') 
    public ganttEl: GoogleChartComponent;

image

xkx9431 commented 2 years ago

Before I'm using this code from https://github.com/FERNman/angular-google-charts/issues/230

FERNman commented 2 months ago

This is also related to #304. See my latest answer there for more information. In short, you'll have to check for the existence of the clearChart property on your current chart. I hope this helps!