Passing data to highcharts from javascript array or variable

series: [{name: 'Week 1 Income',
         data: [parseInt(amnts[0]),parseInt(amnts[1]),parseInt(amnts[2]), parseInt(amnts[3]), parseInt(amnts[4]), parseInt(amnts[5]),parseInt(amnts[6])]
}