Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add label outside the pie chart

How to add values text and slice text outside the chart?

Similar to this image:

enter image description here

Thanks

like image 598
Eman Avatar asked Nov 01 '25 03:11

Eman


1 Answers

Please try this:

dataSet.setXValuePosition(PieDataSet.ValuePosition.OUTSIDE_SLICE);
dataSet.setYValuePosition(PieDataSet.ValuePosition.OUTSIDE_SLICE);

Those properties put labels outside of chart

like image 128
Misha Akopov Avatar answered Nov 02 '25 16:11

Misha Akopov