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

x-axis label jumps when zoomed in and side scrolling. #3245

Closed
steventsng opened this issue Feb 6, 2018 · 2 comments
Closed

x-axis label jumps when zoomed in and side scrolling. #3245

steventsng opened this issue Feb 6, 2018 · 2 comments

Comments

@steventsng
Copy link

The x-axis label jumps when i am zoomed in and scrolling sideways. Have a look at the gif attached.

chartszoom

Any idea why this is happening?

@MananPatel95
Copy link

I had an issue similar to this, try this:

Remove:
LineChart.xAxis.avoidFirstLastClippingEnabled = true

Add in:
LineChart.xAxis.centerAxisLabelsEnabled = true

and add this to format the starting and ending x position of the graph if you want:
LineChart.xAxis.spaceMin = 0.5
LineChart.xAxis.spaceMax = 0.5

@steventsng
Copy link
Author

steventsng commented Feb 16, 2018

Removing LineChart.xAxis.avoidFirstLastClippingEnabled = true fixes it. Other stuff is not needed for me.

Thanks for the help!

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