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

The chart will draw incorrectly if LineChart leftAxis.axisMinimum does not start at zero #3458

Closed
acumenrev opened this issue May 16, 2018 · 1 comment

Comments

@acumenrev
Copy link

acumenrev commented May 16, 2018

What did you do?

Set LineChart leftAxis.axisMinimum = 70 (or not equal zero). The chart will draw incorrectly
In both cases, I set LineChart leftAxis.axisMaximum = 80

What did you expect to happen?

the spacing between the line 70 and 75 is same with 75 and 80 and the graph is expanded to the whole view

Charts Environment

Charts version/Branch/Commit Number: 3.0.2
Xcode version: 9.3.1
Swift version: 3.0
Platform(s) running Charts: iOS
macOS version running Xcode: High Sierra 10.13.4

Demo Project

This is a screenshot where I set LineChart leftAxis.axisMinimum = 0
alt text

And this one where I set LineChart leftAxis.axisMinimum = 70
alt text

@liuxuan30
Copy link
Member

liuxuan30 commented Jun 12, 2018

I don't understand. You set leftAxis.axisMinimum = 70 and it starts from 70 now.
and I tried with ChartsDemo with your [70, 80] range and a single dot, totally fine. So double check your view's frame, or ask on stack overflow.

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

2 participants