mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
687 stars 152 forks source link

Chart not display after reload #7

Closed KelvinKaYiuLok closed 5 years ago

KelvinKaYiuLok commented 5 years ago

Hi,

I am trying Blazor server side with this library and it works great, however, if I navigate away from the page that contains chart and comes back, the chart disappeared. I have included the below code and still does not work according to the documentation.

protected override void OnAfterRender()
{
    lineChartJs.Reload();
}
larshg commented 5 years ago

@KelvinKaYiuLok is this still an issue with the newest version?

KelvinKaYiuLok commented 5 years ago

Yes is all working now.

larshg commented 5 years ago

Nice, Can you close the issue then?