Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force deselecting a slice from pie chart

I am looking for a way of forcing the slice of the pie chart to become unselected. It automatically deselects when you click out of the pie chart however I was wondering if there was a way to deselect it within a button action?

I have various buttons which displays filtered versions of the same data and, if a slice is selected when you click a button it remains selected.

Any help would be great.

Thanks

like image 309
Jess Murray Avatar asked Oct 25 '25 15:10

Jess Murray


1 Answers

 pieChart.highlightValue(nil)

This worked for me. I am on Charts (3.0.2), Swift 3, XCode 8.3.3.

Hope this helps someone.

like image 123
Nikhil Manapure Avatar answered Oct 27 '25 05:10

Nikhil Manapure