-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Pie chart data labels not in correct position. #436
Comments
This is very weird, as it works in the demo perfectly. Can you show us your code? Or maybe play with the demo a little until you find the line that makes all the difference? |
This is my exact code for displaying pie. Playing around with it since a while couldn't figure out :) |
Oh I managed to fix this by removing the line where we set the rotationAngle of chart to :
|
No, it's not that at all. You've not set x-values to the data. It tries to render the labels for the x-values below the values, but has nothing to render. _chartView.drawSliceTextEnabled = NO; |
That solved the issue! :) Thank you! And it's awesome library ! 👍 |
Hello,
I am using ur library and the data labels are not correctly rendered in the PieChart. Shouldn't be it in the middle of the PieChart slices?
I initialized data set as :
PieChartData *data = [[PieChartData alloc] initWithXVals:nil dataSet:dataSet];
Is there any other way to remove the data labels as well?
The text was updated successfully, but these errors were encountered: