score:1

Accepted answer

for any posterity here is the solution i came up with which assumes that every data array is the same length (my use case):

    var arr = [json_data];

    // first series data to plot
    var series1 = [];
    for (var i = 0; i < arr[0][0].data.length; i++)
    {
        var temp = [];
        temp.push(arr[0][0].data[i]);
        temp.push(arr[0][1].data[i]);                   
        series1.push(temp);
    }

    // second series data to plot
    var series2 = [];
    for (var i = 0; i < arr[0][0].data.length; i++)
    {
        var temp = [];
        temp.push(arr[0][2].data[i]);
        temp.push(arr[0][3].data[i]);                   
        series2.push(temp);
    }

and within my highcharts series: parameter:

     series: [{
            name: "series 1",
            data: series1
     }, {
            name: "series 2",
            data: series2
     }],

Related Query

More Query from same tag