Accepted answer

You might want to add json as the 4th argument of your $.post to get the JSON parsed as an object, more info here:

$.post('getData.php', {b: begin,e: end}, function(data){

}, 'json');

Reading your code tells us the structure of your data is as follows:

Array (
    [0] => Array
            [name] => V
            [data] => Array
                    [0] => Array
                            [0] => value of $dateTimer1
                            [1] => value of $row['v1']

Therefore the data series are:

  • data[0][data] for V.
  • data[1][data] for Speed.


chart.series[0].setData( data[0][data] );
chart.series[1].setData( data[1][data] );

When in doubt about a structure, simply print it out:

Related Query

More Query from same tag