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 draw gridBackground by Dashed Line #1030

Closed
anhltse03448 opened this issue May 13, 2016 · 3 comments
Closed

How to draw gridBackground by Dashed Line #1030

anhltse03448 opened this issue May 13, 2016 · 3 comments

Comments

@anhltse03448
Copy link

I want to draw grid background by Dashed Line instead default line. Please help me to solve this issue

@aastein
Copy link

aastein commented May 15, 2016

chartView.(rightAxis/leftAxis/xAxis).grid*

@liuxuan30
Copy link
Member

liuxuan30 commented May 16, 2016

defined as below:

    public var axisLineColor = NSUIColor.grayColor()
    public var axisLineWidth = CGFloat(0.5)
    public var axisLineDashPhase = CGFloat(0.0)
    public var axisLineDashLengths: [CGFloat]!

    public var gridColor = NSUIColor.grayColor().colorWithAlphaComponent(0.9)
    public var gridLineWidth = CGFloat(0.5)
    public var gridLineDashPhase = CGFloat(0.0)
    public var gridLineDashLengths: [CGFloat]!
    public var gridLineCap = CGLineCap.Butt

    public var drawGridLinesEnabled = true
    public var drawAxisLineEnabled = true

@wmfgithub
Copy link

leftAxis.gridLineDashLengths = @[@2];

i forgot to set this property.

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

4 participants