ChartsOrg / ChartsOrg/Charts

Jump effect when no further zooming in allowed

Open
#3,111 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi! I'm testing the Charts framework v3.0.4 (d953129). Till now all is good and I like it. But there is someting that I don't understant. If I enable scale only on X and set a min. zoom in level of 1.0 for example:

_chartView.dragEnabled = YES;
_chartView.scaleXEnabled = YES;
_chartView.scaleYEnabled = NO;
// [_chartView setScaleEnabled:YES];
_chartView.pinchZoomEnabled = NO;

...

_chartView.data = data;
[_chartView setVisibleXRangeMinimum:1.0];

in ChartsDemo, LineChart1ViewController.m then when reaching the min. zoom in level, a jump is produce on X.

So with a BalloonMarker present on the screen, I zoom in and all is ok. But when it's reaching the min. zoom in level, then something is not right. I think a translation is happening... It's a bug or how can I avoid this behaviour?

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.