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

Scrolling x-axis labels #1897

Closed
hassanmah opened this issue Nov 30, 2016 · 1 comment
Closed

Scrolling x-axis labels #1897

hassanmah opened this issue Nov 30, 2016 · 1 comment

Comments

@hassanmah
Copy link

Hey,

I am trying to make this line graph scrollable, the only way I have found so far is

chart.zoom(scaleX: 2.0, scaleY: 0.0, x: 0.0, y: 0.0)

But this causes the x-axis values to become decimals as in the attached image.

screen shot 2016-11-30 at 17 29 29

Is there another way I can implement scrolling, without the values becoming decimals?

Thanks

@liuxuan30
Copy link
Member

by default, the lien will show all you entries, so you won't need to help.
When you zoom in, then you can scroll. Zooming in will zoom in the x axis values as well.
About the decimals, you can set granularity to like 1.
If you really want to scroll, then you have to create a big view and zoom in at first, then you can scroll.
Double check your feature requirement

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