novus/nvd3 — pull request #110 by Jyrsa (2012-07-26 10:39:44+00:00)
Title: A quick fix to broken sparklinesPlus

Not the most beautiful piece of code I've written but sparkLinesPlus was broken at the line

.text(yTickFormat(getY(data[Math.round(x.invert(pos))]))); //TODO: refactor this line

Because that looks at something based on the X-value in the table data, which is indexed. I hacked a quick function f to find the nearest entry in the table so that Y can be retrieved.

Disclaimer: I did this really fast just to be able to test my other pull request's functionality in sparklinesplus.