score:2

You need to add a two dimensional array as data. You can declare a global variable and add the data to that varible.

var chartData=[]
    var dataTemp = new Array(parseInt(items[0]), parseInt(items[1]));
chartData.push(dataTemp);

and

series: [{
                 data: chartData
          }]

Related Articles