-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 axis #3081
Comments
it's already supported, as long as you zoom the chart in, only allow x scroll while disable Y. Just play with ChartsDemo. Like |
Hello! I want scroll without zoom. |
scroll without zoom does not make sense, what you think? |
Did you see example? |
Did you see my answer? I said use |
Hello. I set But I see all values |
setVisibleXRange But I want scroll without zooming |
I just found out, ordering matters for this to work. You need to call setVisibleXRangeMaximum after chartView.data = data or notifyDataSetChanged |
@balkarov Can i see the code of adding the scrollView ? |
I got it to work, but I want the chart to start scrolled all the way to the right. Is this possible? I have a bar chart with hundreds of bars, and I only want 14 of them visible at once. chartView.xAxis.labelCount = valuesSet.count
chartView.dragXEnabled = true
chartView.data = BarChartData(dataSet: valuesSet)
chartView.setVisibleXRangeMaximum(14) This makes it scroll, but it starts to the left. |
Hello!
Thank you for your awesome library!
Is it possible implement scroll on Xaxis? With fixed left/right axis and legend?
I implemented with "hack": put chart view to UIScrollView. But left/right axis and legend scrolling too
:(
The text was updated successfully, but these errors were encountered: