-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Top and bottom grid line diverging widths #411
Comments
I guess that the line is just clipped because of being drawn from its middle. It's the default behaviour of graphics drawing. I'll see if we can handle that gracefully. |
Quick workaround is move your desired grid lines outside of |
I have the same problem, but my chart grid line is clipped on the bottom: Indeed, placing Another solution that worked for me: replace |
Well this needs some careful considerations. I thought about adding an offset to the lines, the size of half the line width. But that would lose the center focus of the value on the line. So we need a partial clipping of the grid lines. Just adjust the clipping rect for the grid, vertically, by half the line width. I hope to take care of this soon |
Hello there,
I'm currently struggling to change the implementation of the function renderGridLines found in ChartYAxisRenderer.swift in order to prevent this from happening:
http://i.imgur.com/yASDJAm.png
As you can see, the top and bottom lines have different widths and I'd like all of them to look exactly the same. I tried fixing this by editing the values of the CGContext but I couldn't find out how :(
Can anyone give me a light on this? Or maybe at least point me a direction on how to solve this problem.
The text was updated successfully, but these errors were encountered: