Skip to content
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 render very small #2495

Closed
ghost opened this issue Jun 2, 2017 · 5 comments
Closed

PieChart render very small #2495

ghost opened this issue Jun 2, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 2, 2017

I took UIView size 55*55 for pie chart but i show my chart(circle) very small. can i do something without increase size of view?

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 5, 2017

what it looks like? have reduce the margins?

@ghost
Copy link
Author

ghost commented Jun 5, 2017

Yes, I think piechart is making size 18*18 that look very small.I am using pie chart in tableViewCell that height 55.I seem that it have origin {10,10} that why circle become very small.

@ghost ghost changed the title PieChart rander very small PieChart render very small Jun 5, 2017
@liuxuan30
Copy link
Member

liuxuan30 commented Jun 7, 2017

Have you tried to reduce some margins, like minOffset, pie chart labels will also impact, so disable drawValues maybe

@ghost
Copy link
Author

ghost commented Jun 7, 2017

Yes i did R &D and found in PieRadarChartViewBase.swift, a variable declared var minOffset = CGFloat(10.0).this is hardcoded, when i reduce value of minOffset then perfect for me. but when i change in this file it effects all piecharts that used my project but i want change only for this chart.

@thierryH91200
Copy link
Contributor

chartView.minOffset = 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants