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

"Try it out" gives incorrect code in some circumstances #204

Open turkeyphant opened 5 years ago

turkeyphant commented 5 years ago

When I use the "Try it out" section, the code it provides gives undefined for a bunch of options, e.g.:

$("#sparkline").sparkline([5,6,7,9,9,5,3,2,2,4,6,7 ], {
    type: 'line',
    minSpotColor: undefined,
    maxSpotColor: undefined,
    highlightLineColor: undefine,});

However, this does not reflect what's shown in the preview. Indeed, the documentation says

Set to false or an empty string to hide it