Open chetan1011 opened 7 years ago
https://github.com/PhilJay/MPAndroidChart/issues/1830 this issue has code sample to change color of pies
@evasyuk how #1830 specifies dynamically assigning colors to slices?
Still this issue exist, not able to assign color per slice and the library is picking up random entries from list instead of following 0...10 index approach.
I am trying to find a way to set a specific color to a slice of a PieChart based on some specific condition.
like if(category==fruit){ slice_color=red }else if(category==veggie){ slice_color=green }
Is there a different way to define a particular color to a particular slice of a PieChart