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