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

HorizontalBarChartView display partial data #3320

Closed
littleObsession opened this issue Mar 7, 2018 · 3 comments
Closed

HorizontalBarChartView display partial data #3320

littleObsession opened this issue Mar 7, 2018 · 3 comments

Comments

@littleObsession
Copy link

when i use HorizontalBarChartView, i need display partial data, scroll to display other data. But i set setVisibleXRangeMaximum or setVisibleXRangeWithMinXRange:<#(double)#> maxXRange:<#(double)#> still doesn't work.but i can pinch zoom it to scroll. can you help me how to solve it? thank.

@liuxuan30
Copy link
Member

can you explain what does not work? Myabe a video or image

@ninjazoete
Copy link

@liuxuan30
I think I need similar functionality. I used visibleRange to display X bars with data I have and rest of the bars are greyed out non value bars which can user scroll to. I want user to interactively scroll left and right to first show grey bars with no data and instantly show a loading indicator to load new data with animation.

Problem is I cannot find any handler for content offset anywhere. Is there a way to get to the inner scroll view?

@Leo007Lee
Copy link

you should set dataSource for chartview, then set setVisibleXRangeMaximum or setVisibleXRangeWithMinXRange. It works @littleObsession

@jjatie jjatie closed this as completed Apr 15, 2018
@ChartsOrg ChartsOrg locked as resolved and limited conversation to collaborators Apr 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants