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

null values are not considered in 'interactive' mode. #4

Closed aadrian closed 12 years ago

aadrian commented 12 years ago

The null values that might appear in the data, are not considered in the code that draws the interactivity. This can be very easily shown with the following data in your interactive example:

width:100
height: 100
values: 5,6,7,9,9,null,null,null,5,3,2,2,4,6,7 

the red line is drawn correctly under the mouse in the first part, but after the nulls, the line has an offset proportional to the number of missing values (nulls).

gwatts commented 12 years ago

Fixed in master