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

Cubic line chart is not full bleed #956

Closed
jathu opened this issue Apr 19, 2016 · 1 comment
Closed

Cubic line chart is not full bleed #956

jathu opened this issue Apr 19, 2016 · 1 comment

Comments

@jathu
Copy link

jathu commented Apr 19, 2016

The line chart does not extend all the way to the end of the view. I disabled the rightAxis.enabled, leftAxis.enabled, xAxis.drawAxisLineEnabled and xAxis.drawGridLinesEnabled. Here is what I mean (the whole teal box is the view):

img_3350

@liuxuan30
Copy link
Member

liuxuan30 commented Apr 20, 2016

can you check what's your contentRect? there would be a small gap and contentRect is smaller than the chart view bounds. I remember there is a minOffset =10.0 by default to restrain the contentRect. You can change it to 0.0 and see

    /// Sets the minimum offset (padding) around the chart, defaults to 10
    public var minOffset = CGFloat(10.0)

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