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

Line chart does not render correctly #3514

Closed
hungcaovn opened this issue Jun 14, 2018 · 2 comments
Closed

Line chart does not render correctly #3514

hungcaovn opened this issue Jun 14, 2018 · 2 comments

Comments

@hungcaovn
Copy link

What did you do?

ℹ I have tried to draw a line chart with these data:
[(1006.5384, 252.07004),
(1246.1904, 1067.7164),
(1258.173, 1067.7164),
(1042.4862, 1067.7164),
(1090.4166, 1358.8011),
(1150.3296, 1898.2981),
(1156.3209, 2325.019),
(1162.3123, 2553.6196),
(1150.3296, 2804.4707),
(1222.2252, 3097.6885),
(1294.1208, 3104.394),
(1258.173, 3104.394),
(1354.0338, 3104.394),
(1342.0511, 3176.6318),
(1401.9642, 3315.6208),
(1449.8947, 3479.299)]

What did you expect to happen?

ℹ I expected the chart will be displayed with all values

What happened instead?

ℹ But it just displayed 2 values: 2554, 2804. Not sure why it worked such a weird case like this

Charts Environment

**Charts version/Branch/Commit Number: 3.0.5
**Xcode version: 9.3
**Swift version: 3.3
**Platform(s) running Charts: ios 11.3
**macOS version running Xcode: macOS High Sierra version 10.13.4

@hungcaovn
Copy link
Author

I have created a demo project here: https://github.com/hungcaohnc/TestLineChart

@hungcaovn
Copy link
Author

After spending some time to search all issues here, I have found the reason from this issue: #2567

Just update XBounds.set() and it works fine

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

1 participant