gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Fix for line charts with a data gap at the beginning #146

Open kopeczech opened 9 years ago

kopeczech commented 9 years ago

spaklines_defect

When the values array started with one or more null values, incorrect spot got highlighted on the chart when it was moused over.

johnnytemp commented 7 years ago

I'm a user. I also encountered the same issue. And my fix is the same. This issue occur when the first data point's y-value is null. E.g. see this fiddler (try to mouse over the highest point): http://jsfiddle.net/va0j770x/

Please merge. :)