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

Disable PieChart Label in Chart #2002

Closed
SylarRuby opened this issue Dec 23, 2016 · 2 comments
Closed

Disable PieChart Label in Chart #2002

SylarRuby opened this issue Dec 23, 2016 · 2 comments

Comments

@SylarRuby
Copy link

Is there a setting to disable to label? If I have it like this:

for i in 0..<taxes.count {
            let dataEntry = PieChartDataEntry(value : gross[i], label : "")
            dataEntries.append(dataEntry)
            
        }

nothing shows. I need the label as legend but not in the chart.

@aeiouman
Copy link

pieChartView.drawEntryLabelsEnabled = false

@SylarRuby
Copy link
Author

Thank you, @aeiouman

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