Strange result of highchart

Posted by user1612334 on Stack Overflow See other posts from Stack Overflow or by user1612334
Published on 2012-12-14T04:54:39Z Indexed on 2012/12/14 5:03 UTC
Read the original article Hit count: 212

Filed under:
|
|

I use http://highcharts.com and there is really strange result. So, my data looks like:

Value | Date
1507   2013-02-03
734    2013-02-02
0      2013-02-01
225    2013-01-31 *Graphic miss*
672    2013-01-30 *Graphic miss*
692    2013-01-29 *Graphic miss* <--- This value gone to 1 february
910    2013-01-28
314    2013-01-27

enter image description here

enter image description here

I miss three days (29 January, 30, 31).

When i get data from database, i convert it so:

var lines = [];
                    try {
                        jQuery.each(data, function(i, line) {
                            var dateArr = line.date.split('-');
                            lines.push([
                                Date.UTC(dateArr[0],dateArr[1],dateArr[2]),
                                parseInt(line.num_chips)
                            ]);
                        });
                    } catch(e) { }

Why could it be so? =\

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery