HoloGraphLibrary icon indicating copy to clipboard operation
HoloGraphLibrary copied to clipboard

How to add labels in pie slice?

Open niravPercept opened this issue 8 years ago • 1 comments

How to display percentage of pie slice? How to add labels in pie slice?

niravPercept avatar Sep 14 '16 11:09 niravPercept

canvas.drawText(slice.getTitle(), (float) (midX + (innerRadius + (radius - innerRadius)/2)Math.sin((currentSweep)(Math.PI/360) )), (float) (midY - (innerRadius + (radius - innerRadius)/2)Math.cos((currentSweep)(Math.PI/360))), mPaint);

niravPercept avatar Sep 20 '16 05:09 niravPercept