how to make MPAndroidChart PieChart show single slice in clockwise?

584 views Asked by At

MPAndroidChart is great! I tried to reach following goals with PieChart, but still does NOT work:

1, show only one slice in PieChart. I tried in this way: add two slices into DataSet and make one of them in transparent color, it works in some way, but not good enough.

2,make the only slice start from 0 angle and grows in clockwise. starting from angle 0 is ok, but failed to make it in clockwise

3,hide the text on slice

I have spend several hours in these questions...

enter image description here

1

There are 1 answers

0
Metehan Toksoy On

Check the levels of Y values. If there are at the same index, this error accures. For example:

yVals1.add( new Entry( 48.4 ,0 ) );
yVals1.add( new Entry( 51.6 ,1 ) );

Check the "0 - 1 " values.