-
-
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 is too small in tableview header view #696
Comments
A pie chart is supposed to be round so I believe that it tries to fit itself inside the frame but stay round. Try increasing the height of your header to make it bigger. |
@petester42 Thanks for the quick response, yes if i increase height it will work, but i wanted to know whether any work around to increase the diameter of the circle within the same height? |
No because that would lead to clipping the circle. You could increase the chart frame until it looks like you want without increasing the height. But that's kind of a hack. Have you tried to change the chart padding or offset? I forget what it's called. |
Offset did not work, but increasing height actually making circle appearing bigger, i believe there would be some API actually which controls it, unfortunately i could not find right one yet |
You can zero all the offsets - by disabling the legend like |
Thanks |
There's one point that @danielgindi didn't mention, that PieChartView leave space for the highlight selection slice, so if you don't need the highlight selection function you could also set selectionShift of data set to 0 to get rid of the blank padding. |
Hi @fsjack, what exactly do you mean? How to remove the padding and disable the slice highlight? |
@SylarRuby It means, when you are preparing the chart data for example: To disable slice highlight on pie chart: |
If you dont need to maintain the selection of a piece of the diagram, you need to set the selection shift to 0.
|
Hi,
I'm using pie chart in uitableview head review but the chart is too much small than its frame size, am I missing anything?
Thanks
Pavan
The text was updated successfully, but these errors were encountered: