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

Drawing horizontal dashed lines except on x-axis line? #2681

Closed
seenoevo opened this issue Aug 6, 2017 · 1 comment
Closed

Drawing horizontal dashed lines except on x-axis line? #2681

seenoevo opened this issue Aug 6, 2017 · 1 comment

Comments

@seenoevo
Copy link

seenoevo commented Aug 6, 2017

Using the guidance from #1030, I was able to set the horizontal dashed grid lines:

barChartView.leftAxis.gridLineDashLengths = [3.0]

And the result:

untitled

However, is it possible to ignore showing the dashed lines on the actual x-axis line itself?

@seenoevo
Copy link
Author

seenoevo commented Aug 8, 2017

Thanks to @jayesh15111988 for the answer from #1253, I used:

barChartView.leftAxis.drawZeroLineEnabled = true

This draws the zero-line at the y-axis origin regardless if there is a grid line there or not.

@seenoevo seenoevo closed this as completed Aug 8, 2017
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