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

Min and max number of horizontal lines #603

Closed
NicolasLourenco opened this issue Dec 10, 2015 · 2 comments
Closed

Min and max number of horizontal lines #603

NicolasLourenco opened this issue Dec 10, 2015 · 2 comments

Comments

@NicolasLourenco
Copy link

Hello,
I don't know if exist. But if exist sorry for the issue, I don't have a good knowledge of the library at the moment.

If it doesn't exist, I think it will be fine to add this feature.

For example:

  • I don't want more than 4 horizontal lines
  • I don't want less than 2 horizontal lines

Thanks for reading.
Nicolas

@NicolasLourenco
Copy link
Author

So, after a lot of research I find the solution:

[self.lineChartView.leftAxis setLabelCount:4];
[self.lineChartView.leftYAxisRenderer computeAxisValuesWithMin:0 max:2000];

Sorry for this issue.

@liuxuan30
Copy link
Member

You don't have to be this way. There already exists cusomAxisMin/Max property in ChartYAxis.

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