Unplanned
Last Updated: 23 May 2023 15:35 by jordan
jordan
Created on: 23 May 2023 15:35
Category: Charts
Type: Bug Report
1
Chart does not react to programmatic changes in its parameters even when calling Refresh

I am trying to programmatically update the Chart data during runtime to display live data. The Chart does not seem to refresh and show this change in the viewport.

I've tried:

  • using an Observable Collection;
  • creating a new collection instance and reassigning the Data parameter;
  • calling the Refresh method;

The result is the same - the Chart does not react to the data change. This applies to other component parameters as well.

===

ADMIN EDIT

===

A possible workaround for the time being is forcing the Chart to re-render. To do so, you may wrap the Chart in a custom component and call StateHasChanged() in this component when the data is updated.

Here is a runnable sample: https://blazorrepl.telerik.com/wxEzwxbJ24WDjnMp11.
0 comments