Fix highlight and unhighlight inconsistency.

The unhighlight method retrieved the point differently from highlight,
and incorrectly.  It now matches the behavior of highlight.
pull/1/head
David Schnur 13 years ago
parent aeddf4e385
commit eee071c47d

@ -2844,8 +2844,10 @@ Licensed under the MIT license.
if (typeof s == "number")
s = series[s];
if (typeof point == "number")
point = s.data[point];
if (typeof point == "number") {
var ps = s.datapoints.pointsize;
point = s.datapoints.points.slice(ps * point, ps * (point + 1));
}
var i = indexOfHighlight(s, point);
if (i != -1) {

Loading…
Cancel
Save