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

Lines clipping top and bottom with lineWidth > 1 #123

Closed
justinswart opened this issue Jun 1, 2015 · 2 comments
Closed

Lines clipping top and bottom with lineWidth > 1 #123

justinswart opened this issue Jun 1, 2015 · 2 comments

Comments

@justinswart
Copy link

When using a lineWidth greater than 1.0, my chart is clipping at the min and max values. Is this something that I can adjust by subclassing the ChartViewPortHandler or somehow padding the chart top and bottom?

screen shot 2015-06-01 at 4 14 53 pm

@danielgindi
Copy link
Collaborator

You do not have to subclass - just add some offset

@justinswart
Copy link
Author

I've tried chart.setViewPortOffsets(left: 10, top: 30, right: 10, bottom: 30) as well as setting chart.extraBottomOffset, this makes the space between the segmented control and the bottom of the chart larger but it doesn't prevent the blue line from clipping at its edge. I've also tried chart.clipsToBounds = false.

Appreciate any other suggestions!

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