How do I get the explode=false data when i click on the same segment twice on dougnut chart(Explode)

Hi I am working on the dougnut chart. so right now if the chart is explode after i select the segment. a text will appear regarding the segment will appear below the chart. But how do make the text back to orignial state(invisible) after I click the same segment again (the segment became not exploded).

1 Reply 1 reply marked as answer

DP Dharanitharan Palanisamy Syncfusion Team May 25, 2021 10:30 AM UTC

Hi Ang, 
 
Greetings from the Syncfusion team. We have gone over your scenario and prepared a sample for you to use as a guide, please feel free to use it. We use a separate Text widget to set the custom text, and we get the point index of the tapped section using onPointTapped, and we set the text if the index is different, and the empty text if the index is the same. 
 
 
Thanks, 
Dharanitharan. P 


Marked as answer
Loader.
Up arrow icon