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 values outside of chart? #1790

Closed
cilasgimenez opened this issue Nov 4, 2016 · 3 comments
Closed

PieChart values outside of chart? #1790

cilasgimenez opened this issue Nov 4, 2016 · 3 comments

Comments

@cilasgimenez
Copy link

cilasgimenez commented Nov 4, 2016

Hi everyone. It's not a issue but since the version v2.2.5 theres is an option to set values outside of piechart (connected with a line). I swear i tried to find any hint on how to do that, but i found nothing related to this. I have my chart all setted up and would like to show this lines. Any hint? Thanks!

@Leinadzet
Copy link

+1

@danielgindi
Copy link
Collaborator

It's in the demos my friend! There are two pie chart demos, one of this is with lines drawn to the values.

@cilasgimenez
Copy link
Author

It really is! I didn't noticed the PiePolylineChartViewController.m.
If anybody face this too. Here's the part took from the demo and updated to swift 3:

        pieChartDataSet.valueLinePart1OffsetPercentage = 0.7;
        pieChartDataSet.valueLinePart1Length = 0.2;
        pieChartDataSet.valueLinePart2Length = 0.4;
        pieChartDataSet.yValuePosition = .outsideSlice
        pieChartData.setValueTextColor(.black)

Thanks danielgindi. If you don't mind, i'd like to ask you, if there's intend to make the demos written in actual swift supported version instead obj-c?

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

3 participants