|
// add your additional code here
private void LoadPoints()
{
var random = new Random();
PieChartPoints = new List<PieData>
{
new PieData { Browser = "Chrome", Users = random.Next(1, 100) },
new PieData { Browser = "UC Browse", Users = random.Next(1, 100) },
new PieData { Browser = "iPhone", Users = random.Next(1, 100) },
new PieData { Browser = "Others", Users = random.Next(1, 100) },
new PieData { Browser = "Opera", Users = random.Next(1, 100) },
new PieData { Browser = "Android", Users = random.Next(1, 100) }
};
StateHasChanged();
}
// add your additional code here
|
This is still a problem. I'm on Syncfusion.Blazor.Charts 21.2.8
SfAccumulationChart does not refresh when the data changes even with a .Clear(), except, weirdly, it refreshes in a delayed manner w/the previous data set displaying after updating the data source w/the current data set; i.e., it will keep refreshing but with the previous data set, again, strange.
I also tried a .Refresh() along w/StateHasChanged() but no success, and I tried for a while.
Soeren's workaround does work; i.e., new() the data source.
ChartAllocations2 = new List<ChartAllocation2>(); // This works
// ChartAllocations2.Clear(); // w/subsequent population // This does not re-render as expected.
Hi Steve,
We have analyzed your query. we checked the accumulation chart refresh issue. Unfortunately, we are unable to reproduce the reported issue. We have attached a sample and vidoe for your reference. Please find below sample which is used by testing.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PieRefresh-1529765615.zip
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PIEREF~1-79248166.zip
Since we are not aware of your exact problem. So Please share the following information which will be more helpful for further analysis and provide you the solution sooner.
Regards,
Gopalakrishnan Veeraraghavan