I have created a Pie on achartengine but the labels displayed are overlapping. There is a way to set the label ratio on a Pie with achart engine Android?
Set the labels (category name) with the values and hide the legend. Finally, implement the legend manually out of the chart.
Related
How can I create PieChart like the one shown below in Android using MPandroidchart? Small value will change style of legend
I need to create a doughnut shaped Pie Chart, exactly as below example:
Maybe some people will ask why I said a Pie Chart instead of Doughnut Chart. I tried using Doughnut Chart, but the legend doesn't give me the information I need. It gave me category titles instead of color definition of each area in the chart, just like below image:
See the legend above? That is not what I want. Instead, I need the legend to be like the one in Pie Chart:
But Pie Chart has no hole in the center. How to make a doughnut shaped Pie Chart?
I am using achart engine for displaying some graphics in my application (http://www.achartengine.org/)
However for the pie chart when I set display chart values to true, I get the values but they are painted in a tone of gray that's almost invisible in the actual graphic colors.
Is there a way to change this color?
Preferably make one black and the other one white.
If I recall correctly, you can change the color of the labels using setLabelsColor function like:
renderer.setLabelsColor(Color.BLACK);
I am using Achart Engine to display the pie chart, now i see that the legends are not displaying to the center.
i want the legends to be displayed in center how to do it?
As stated by many questions and answers out there the legend cannot be centered for achartengine. I was actually looking for it myself.
The only solution i have herd of is to hid the current one and then display a new one in a text view.
I am displaying pie charts in my application.
I want to increase and decrease size of the legends in the pie chart.
How do I achieve this?
The color of the legend items is the same as the slice colors. You cannot change that.