-
-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Piechart legend cutting issue. #3521
Comments
Did you find any solution ? |
@tutysathish No till now. :( |
I have exactly the same problem, both with this library and with the iOS one, so I thought that it wasn't a bug but a miss configuration of the legend. I hope you find a solution. |
@rferbesa I don't have any solution. If you have any solution then please suggest me. Thanks. |
@GrishmaPromact @tutysathish @rferbesa The method takes a |
Hi how u set your legend / labels vertically ? ? pls share |
@engr-erum I didn't find any solution. |
Thanks alot for this post @GrishmaPromact , I spent half day searching for legends to be vertically aligned. After i did these changes, i faced the same issue of cutting legend as this |
Set the following, Increase the value as per requirement |
Thanks , it worked @aviraj |
customizing with xml attribute |
thanks,i have this problem,too. |
My legend isn't showing my 6th entry . I have written this code -
// yValues.add(new PieEntry(poorCount, "Poor"));
|
As, you are facing horizontal legends cutting. Set X offset for horizontally cutting legend. Increase the value as per your requirement |
@GrishmaPromact yeah that solved my cutting issue. But can u tell, why i am unable to see my 6th entry in legend? |
@anant-dev pieChart.setEntryLabelTextSize(12f); |
@GrishmaPromact I tried setting textSize using above method , doesnt seem to work |
This issue is easily reproducible in the example app. In PieChartActivity comment out these two lines to move the legend underneath the pie chart
and you'll see Party D is clipped This issue also occurred in the iOS repo, which I reported and they fixed. A workaround that worked for both libraries is to mess with the legend's |
Sorry, I might be late by years. But we should also make sure we do the following before we set data and invalidate it.
|
I have attached the screenshot of my usage chart. In red box display the legends and they are cutting in pie chart.
Below is my code:
plz help me to solve this issue.
Thanks in advance.
The text was updated successfully, but these errors were encountered: