I recently started learning D3 and have been exploring various pie chart tutorials.
Specifically, I've been following the tutorials by Mike Bostock. http://bl.ocks.org/mbostock/1346410
However, I'm struggling with updating a donut chart from one dataset to another that has more values than the original.
I've tried using an update function several times, but haven't had any success. To simplify my question, let's imagine my first dataset had 5 values:
[1,2,3,4,5]
and the second dataset had 10 values:
[1,2,3,4,5,6,7,8,9,10]
After the dynamic update, only 5 values from the new dataset are displayed on the arcs. It seems like the pie is fixed with only 5 arc sections to represent the new data.
Any assistance would be greatly appreciated, as I've been struggling with this issue for some time!