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

I want to un-highlight a line chart when dragging has stopped, among other things. Am I missing it? Thanks #2276

Closed
dangell7 opened this issue Mar 24, 2017 · 3 comments

Comments

@dangell7
Copy link

I want to un-highlight a line chart when dragging has stopped, among other things. Am I missing it?

Thanks

@dangell7
Copy link
Author

I tried setting up my own pangesturerecognizer but it wouldnt let me drag in the chart. I'm using swift 3 and I just want to remove the highlight when the panning/dragging stops.

@liuxuan30
Copy link
Member

liuxuan30 commented Mar 27, 2017

Have you checked ChartsDemo line chart? I don't see what you asked happens.
If you need to remove all the highlight, just disable it.

@quintonpryce
Copy link

I landed here when trying to remove the highlight lines after the drag had stopped. This is what I figured out works:

extension LineChart1ViewController: ChartViewDelegate {
    func chartViewDidEndPanning(_ chartView: ChartViewBase) {
        print("Did Finish selection")
        chartView.highlightValues(nil)
    }
}

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