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

Dash line and highlighted top value #3221

Closed
huuthanhla opened this issue Jan 29, 2018 · 1 comment
Closed

Dash line and highlighted top value #3221

huuthanhla opened this issue Jan 29, 2018 · 1 comment

Comments

@huuthanhla
Copy link

huuthanhla commented Jan 29, 2018

I want to custom radar chart view, dash line and highlighted top value like this:
radarChart.png

It is possible?

@huuthanhla huuthanhla reopened this Jan 29, 2018
@huuthanhla huuthanhla changed the title Solid grid line and highlighted top value Dash line and highlighted top value Jan 29, 2018
@huuthanhla
Copy link
Author

I try to custom RadarChartRenderer with dottedLineSegments CGContext. It working for me.

func dottedLineSegments(between points: [CGPoint]) {
    let  p0 = points[0]
    move(to: p0)
    let  p1 = points[1]
    addLine(to: p1)
    
    let  dashes: [ CGFloat ] = [ 1.0, 2.0 ]
    setLineWidth(1)
    
    setLineDash(phase: 0.0, lengths: dashes)
    strokePath()
}

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