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

Unable to hide Y values #17

Closed
fotiDim opened this issue Apr 9, 2015 · 8 comments
Closed

Unable to hide Y values #17

fotiDim opened this issue Apr 9, 2015 · 8 comments

Comments

@fotiDim
Copy link

fotiDim commented Apr 9, 2015

I am implementing a Pie chart and I am unable to hide Y values.
I tried setting dataSet.drawValuesEnabled = NO but this hid both X and Y labels.
On the contrary I am able to hide X labels by [_chartView setDrawSliceTextEnabled:NO]

@PhilJay
Copy link
Collaborator

PhilJay commented Apr 9, 2015

Try

[pieChartDataSet setDrawValues: NO];

on your PieChartDataSet or PieChartData object.

@fotiDim
Copy link
Author

fotiDim commented Apr 9, 2015

Only PieChartData declares the setDrawValues method. I tried it and it hides both X and Y.

@PhilJay
Copy link
Collaborator

PhilJay commented Apr 9, 2015

Sorry, my bad. The field you need to set to NO is called "drawValuesEnabled", it's public.

@danielgindi
Copy link
Collaborator

There's a setter for "drawSliceTextEnabled" but I think that's for X values

@danielgindi
Copy link
Collaborator

@PhilJay Are we implementing a property to exclusively hide Y values?

@PhilJay
Copy link
Collaborator

PhilJay commented Apr 12, 2015

Yes, this already exists in Andriod and can be done via calling setDrawValues(...) on any DataSet object.

@danielgindi
Copy link
Collaborator

It is now fixed - there was a bug in the iOS version, that were fixed a few days ago in the Android version

@fotiDim
Copy link
Author

fotiDim commented Apr 13, 2015

I confirm the fix. dataSet.drawValuesEnabled = NO; did the trick

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