Home › Forums › Chart Support › reset chart › Reply To: reset chart
@codetonight,
You can restore the slices in doughnut chart to the old state by dynamically setting the exploded property of dataPoints to false as shown in the code snippet below.
for(var i = 0; i < chart.data[0].dataPoints.length; i++) chart.options.data[0].dataPoints[i].exploded = false; chart.render();
Kindly have a look at this JSFiddle for the working example on the same.
__ Sachin Bisht Team CanvasJS