I'm currently utilizing Angular2 with PrimeNG for my application. My dashboard includes charts and after attempting to upgrade to PrimeNG rc7 (from rc5) where they addressed an issue with updating charts, I'm facing challenges updating my chart due to the changes that require calling a method.
Although I've come across the @ViewChild decorator, I'm unsure about its proper usage.
Here's a snippet of my chart.html:
<p-chart #linechart type="line" #linechart
id="linechart" [data]="ntwdata" [options]="options">
</p-chart>
...
I tried implementing @ViewChild in different ways but encountered issues with accessing the chart object for refreshing purposes. If any of you have suggestions or solutions, please explain it to me as if I were a beginner!
Thank you in advance!