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?