Open brucexia opened 7 years ago
you can create a class extends PieChartRenderer, and override the drawValues() method to implements this.
@Dragon-Boat Thank you will try that approach. Another question is there doesn't seem to be a method to specifify the size of the donut, it scales and ends up cutting off the value text like in the screenshot sometimes
@brucexia you should create your own CustomPieChart extends PieChart, and Override the getDiameter method to return the actual size of the donut. the method will decide how big the donut is ( not change the size of PieChart ).
@Dragon-Boat thanks. Setting extra offset seems to solve the cut off problem.
how to draw value color and line color?
Need to implement something like this. Note the value label is drawn outside ring and with same color, no indicator lines. Do we already have this capability? if not, any advice how to implement?