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

How to make horizontal dotted line to solid line same as vertical line. #793

Closed
rv928 opened this issue Mar 3, 2016 · 1 comment
Closed

Comments

@rv928
Copy link

rv928 commented Mar 3, 2016

I have enabled line showing using below options. but it is showing dotted line. I want to make it solid line.
 public var drawAxisLineEnabled = true
public var drawGridLinesEnabled = true
screen shot 2016-03-03 at 4 17 17 pm

@liuxuan30
Copy link
Member

check out yAxis.gridLineDashPhase, yAxis.gridLineDashLengths, yAxis.gridLineDashLengths.count
if you want solid grid line, set yAxis.gridLineDashLengths = nil, or change the dash options

            if (yAxis.gridLineDashLengths != nil)
            {
                CGContextSetLineDash(context, yAxis.gridLineDashPhase, yAxis.gridLineDashLengths, yAxis.gridLineDashLengths.count)
            }
            else
            {
                CGContextSetLineDash(context, 0.0, nil, 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