Xojo2025R1: WebChart pie not working correctly

There is something wrong with the pie chart, it shows properly for the first time but then when trying to reset the data the graph changes to this:

Now thinking of it, the code does this:

TotalsChart.AddDatasets(Totals)

So it looks like the AddDatasets keeps accumulating data instead of reinitializing it.

How do I re-initialize the chart then?

It looks like I need to do this:

TotalsChart.RemoveAllDatasets
1 Like