-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 remove marker programatically #1097
Comments
hmm, with my PR #887 getting merged, there is a chance to turn off the marker value, can it solve your problem? |
@liuxuan30 No, this is not addressing my scenario, but I did some tweaking in BarLineChartViewBase.swift and in ChartViewBase.swift, like making a separate public function for removing the highlighted markers, then overriding nstouchesbegan, nstouchesended and nstouchescnacled functions in BarLineChartViewBase.swift to handle markers. Some how thats what I needed for this scenario. Still removing markers for tableview scroll is not yet achieved. |
Yep, wishing for this functionality too.. |
You can hook into
Then in
On tableView scroll you just call |
Call this when you want to remove marker from chartview yourChartViewInstance.highlightValue(nil, callDelegate: false) |
Hi, I need to remove marker when my touch ends. Is there any way to achieve this?
Also if possible remove marker when ever I want, as my chart is shown in a tableview, the marker is seen even I scroll out of the graph and come back to it, I want to remove it as soon as the user is not interested in the chart.
Please help.
The text was updated successfully, but these errors were encountered: