Commit eee071c4 authored by David Schnur's avatar David Schnur

Fix highlight and unhighlight inconsistency.

The unhighlight method retrieved the point differently from highlight,
and incorrectly.  It now matches the behavior of highlight.
parent aeddf4e3
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment