i found a problem concerning jQuery Sparkline 2.1.2 linie charts:
if the first value is null, then highlightSpot and highlightLine mark the wrong line.
maybe its easy fixed by inserting the following lines at line 1599 (sparkline 2.1.2):
} else {
// OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null
vertices.push(null);
around this area (starting at line 1592:
if (y === null) {
if (i) {
if (yvalues[i - 1] !== null) {
path = [];
paths.push(path);
}
vertices.push(null);
} else {
// OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null
vertices.push(null);
}
} else {
i found a problem concerning jQuery Sparkline 2.1.2 linie charts: if the first value is null, then highlightSpot and highlightLine mark the wrong line.
maybe its easy fixed by inserting the following lines at line 1599 (sparkline 2.1.2): } else { // OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null vertices.push(null);
around this area (starting at line 1592: if (y === null) { if (i) { if (yvalues[i - 1] !== null) { path = []; paths.push(path); } vertices.push(null); } else { // OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null vertices.push(null); } } else {
see the following example sparkline_highlite-error.html: https://gist.github.com/olaf64/7133322