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

Could the label of the LineChartDataSet be hidden #918

Closed
Xwoder opened this issue Apr 5, 2016 · 1 comment
Closed

Could the label of the LineChartDataSet be hidden #918

Xwoder opened this issue Apr 5, 2016 · 1 comment

Comments

@Xwoder
Copy link

Xwoder commented Apr 5, 2016

LineChartDataSet *dataSet = [[LineChartDataSet alloc] initWithYVals:yVals label:@"Data Set 1"];

after this ,the text Data Set 1 will show below the chart, but I want to hidden it.

Thank you very much.

@liuxuan30
Copy link
Member

then why do you pass a string... and enable legend?
to turn off legend, chartView.legend = false
to not display text, use @""
you are a developer, and you can do better exploring the code :)

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