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

line graph xvalues bugs in decrescent order #139

Open rafaelcapucho opened 9 years ago

rafaelcapucho commented 9 years ago

Hello,

I need to use two variables, x and y, as well... but my x should be in decrescent order, eg:

$("#graph-price").sparkline(
            [3, 5, 2, 7], {
            xvalues: [4, 3, 2, 1],
            ...

As we can see here in fiddle: http://jsfiddle.net/Hj6fB/173/


can I at least add xvalues like strings: xvalues : ['01/01/2015', '02/01/2015'] but it doesnt work too...

Thanks