-
-
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 of bar chart is not working initially. #3532
Comments
Try this: chartView.xAxis.labelCount = 7 |
We are facing the same issue, we want to show only 4 bars and want to have scroller to scroll for rest of the bars. Is there any way to do this? |
@asheesh-gupta-kranti have you tried setting labelCount property? |
Yes, I have but it's only changing the number of labels not the number of bars. |
please ask on stack ovreflow next time. This, time, it should be
|
I just found out, ordering matters for this to work. You need to call setVisibleXRangeMaximum after chartView.data = data or notifyDataSetChanged |
dude, @pateljinal1844 , i was like an hour crying because it wasn't working, shit, there is no doc at all. You saved me, fucking order |
I create a bar chart using using this library. and want to show minimum 7 bars initially. But show all data at once after load. Please help me to achieve this.
The text was updated successfully, but these errors were encountered: