Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add switch for clearing
lastHighlighted
in clear() (ChartsOrg#2355)
add switch for clearing `lastHighlighted` in clear() fixing a bug: when clearing chart, the 'lastHighlighted' var isn't set to nil. This will cause user to tap twice to highlight the new value, if the new value's index is the same as the old 'lastHighlighted' var's. * adding a switch it controls whether to clear the lasthighlighted value or not