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

Glitch while scrolling #430

Closed
AlexEdunov opened this issue Sep 28, 2015 · 6 comments
Closed

Glitch while scrolling #430

AlexEdunov opened this issue Sep 28, 2015 · 6 comments

Comments

@AlexEdunov
Copy link

I have line chart view. Sometimes when I scroll it and the scale is changing I see glitch like this: https://youtu.be/HybGwFSQDjQ

@liuxuan30
Copy link
Member

would you be able to break it when it glitch, seems like the lowestVisibleXIndex is not correct? so there will be a blank space on the left?

@AlexEdunov
Copy link
Author

The problem went away when I set a fixed width of left axis

    leftAxis.maxWidth = 100.f;
    leftAxis.minWidth = 100.f;

@danielgindi
Copy link
Collaborator

Can you provide sample data for it?
Not happening in the demo...

I suspect that your leftAxis is actually trying to change size while scrolling, because of the visible data range changing. This is normal behaviour, except that the axis width changes seem too radical in your video!

@AlexEdunov
Copy link
Author

@sochalewski
Copy link

I'd like to reopen the issue. The same is happening to me almost every single move.

Screencast recorded: https://dl.dropboxusercontent.com/u/5765015/glitch.mov

Here is my setup:

chartView.scaleYEnabled = false
chartView.scaleXEnabled = false
chartView.pinchZoomEnabled = false
chartView.doubleTapToZoomEnabled = false
chartView.xAxis.drawGridLinesEnabled = false
chartView.leftAxis.customAxisMin = 0.0
chartView.autoScaleMinMaxEnabled = false
chartView.leftAxis.drawGridLinesEnabled = false
chartView.rightAxis.enabled = false
chartView.legend.form = .Circle

@sochalewski
Copy link

@danielgindi @liuxuan30 I investigated and it's broken when drawFilledEnabled is true. Could it be fixed easily?

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

4 participants