I wrote the code that on clicking the slice, it explodes. I am facing issue with explode in one case. The slice is not getting explode. I will try to explain the scenario with example,
I am passing the datasource which has the 3 values in it.
1. SliceName: Overdue Actions, Value : 10
2. SliceName: Open Actions, value: 1
3. SliceName: Closed Actions, value: 0
As a result, two slices will be visible ( Overdue Actions and Open Actions). Now, If I click on the any of the slice it gets selected and explode also.
Now let's say, If I change the value of datasource
2. SliceName: Open Actions, value: 0
3. SliceName: Closed Actions, value: 1
Again, two slices will be visible ( Overdue Actions and Closed Actions). Now, If I click on the Closed Actions It gets selected but it does not get explode.
What is the issue here?
Thank you for posting in our community.
I have created and attached a sample following the steps you have written.
I have added a button with an onClick handler that changes the values in the data and then resets the data source of the pie chart. On my side everything works as expected. Please test this sample and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation. Do not hesitate to contact me if you have need any further information regarding this matter.