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

how to set max zoom scale for y-axis #4011

Closed
AndreaMiotto opened this issue May 31, 2019 · 2 comments
Closed

how to set max zoom scale for y-axis #4011

AndreaMiotto opened this issue May 31, 2019 · 2 comments

Comments

@AndreaMiotto
Copy link

Hi, it is not clear to me how can I disable the zoom on the y-axis.

@izik461
Copy link

izik461 commented Jun 18, 2019

It's super easy:

let chartView = LineChartView()
chartView.scaleYEnabled = false

If you want to have scaling enabled, but within specified range:
yAxis has 2 axes -> left and right
chartView.setVisibleYRange(minXRange: 10, maxXRange: 150, axis: .left) //[arbitral units]

@liuxuan30
Copy link
Member

ask on stack overflow for how-to questions plz.

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