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

Which attribute control the yellow line,like the picture? #3074

Closed
guoyutaog opened this issue Dec 6, 2017 · 3 comments
Closed

Which attribute control the yellow line,like the picture? #3074

guoyutaog opened this issue Dec 6, 2017 · 3 comments

Comments

@guoyutaog
Copy link

image

@guoyutaog
Copy link
Author

how to hide it

@KevinZK
Copy link

KevinZK commented Dec 8, 2017

DataSet.highlightEnabled = false
highlightEnabled.highlightColor = UIColor.clear

@liuxuan30
Copy link
Member

correct answer:

    @objc open func drawHighlightLines(context: CGContext, point: CGPoint, set: ILineScatterCandleRadarChartDataSet)
    {
        
        // draw vertical highlight lines
        if set.isVerticalHighlightIndicatorEnabled
        {
            context.beginPath()
            context.move(to: CGPoint(x: point.x, y: viewPortHandler.contentTop))
            context.addLine(to: CGPoint(x: point.x, y: viewPortHandler.contentBottom))
            context.strokePath()
        }
        
        // draw horizontal highlight lines
        if set.isHorizontalHighlightIndicatorEnabled
        {
            context.beginPath()
            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: point.y))
            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: point.y))
            context.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

3 participants