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

Crash when redraw graph from 2 lines to 1 line with click on highlight #101

Closed
bravevu opened this issue May 23, 2015 · 1 comment
Closed

Comments

@bravevu
Copy link

bravevu commented May 23, 2015

My graph has 2 lines: line 1 & line 2. I click 1 point on line 2. Then, click 1 button to change to graph with 1 line, app crash. If I click point on line 1 and redraw graph 1 line, it is ok.
Bug in function:
public func getEntryForHighlight(highlight: ChartHighlight) -> ChartDataEntry
{
return _dataSets[highlight.dataSetIndex].entryForXIndex(highlight.xIndex);
}
I think because in graph 1 line not have information for highlight on line 2.
How to remove highlight on line 2 before redraw?

@bravevu
Copy link
Author

bravevu commented May 24, 2015

Sorry, this is my fault. Need set highlightvalue to nil before redraw.

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

2 participants