score:2

Accepted answer

use the following to get your array parsed to js.

var data = jquery.parsejson(' <?php echo json_encode($yourarray, json_numeric_check); ?> ');

than you can put it inside your serie like the following.

series: [{
    'name': data.name[0],
    'data': data.data[0]
}, {
    'name': data.name[1],
    'data': data.data[1]
}]

Related Query

More Query from same tag