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

Remove slices text in pieChart #3918

Closed
shivanand217 opened this issue Mar 27, 2019 · 4 comments
Closed

Remove slices text in pieChart #3918

shivanand217 opened this issue Mar 27, 2019 · 4 comments

Comments

@shivanand217
Copy link

shivanand217 commented Mar 27, 2019

Can you please suggest how to not show slices text on a pie chart like android has setDrawSliceText(boolean enabled).

@shivanand217 shivanand217 changed the title Can you please suggest how to how to not show slices text on pie chart like android has setDrawSliceText(boolean enabled). Remove slices text in pieChart Mar 27, 2019
@ishdemon
Copy link

Refer to Android repo's documentation.

@liuxuan30
Copy link
Member

there should be switch to do that. So you can take a look at the code.

@kevinliu23
Copy link

Found the solution: chartView.drawEntryLabelsEnabled = false

@mouchegmouradian
Copy link

Found the solution: chartView.drawEntryLabelsEnabled = false

That's not it. To remove the text from the slices you need to call this:

dataSet.drawValuesEnabled = false

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

5 participants