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

Incorrect chart view adjustment after moveViewtoX(xIndex: Int) #82

Closed
creister opened this issue May 12, 2015 · 4 comments
Closed

Incorrect chart view adjustment after moveViewtoX(xIndex: Int) #82

creister opened this issue May 12, 2015 · 4 comments

Comments

@creister
Copy link

Calling chartView.moveViewToX does not appear to be functioning as expected. The chart jumps to a different index, and when scrolling begins the chart will jump again to another different index. Neither seem to be the correct xIndex specified.

This can be replicated by appending two lines in the ChartsDemo project in LineChart1ViewController.m after _chartView.data = data (line 147):
[_chartView setVisibleXRange:10];
[_chartView moveViewToX:10];

moveviewtox

@gjpc
Copy link

gjpc commented Jun 9, 2015

I can confirm this. Calling moveViewToX: 200 on my simple line chart alternates the view between 0 on the first call and 511 on the next call and back to 0 on the next call etc.

@danielgindi
Copy link
Collaborator

@creisterer-db your example is irrelevant, as you are trying to move even before the chart has a size or is properly calculated according to that size. But still the bug exists!

Working on a fix.

@mkubenka
Copy link
Contributor

+1

@danielgindi
Copy link
Collaborator

It was actually fixed, marked incorrectly as a fix for #129...
4cbd20f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants