Highcharts.setOptions({ chart: { backgroundColor: { linearGradient: [0, 0, 500, 500], stops: [ [0, 'rgb(255, 255, 255)'], [1, 'rgb(240, 240, 255)'] ] }, borderWidth: 2, plotBackgroundColor: 'rgba(255, 255, 255, .9)', plotShadow: true, plotBorderWidth: 1 } }); // // Create the chart Highcharts.chart('test', { title: { text: 'Fruit Consumption' }, xAxis: { categories: data["like"] //.sort(function(a, b) {return a - b;}) }, yAxis: { title: { text: 'Fruit eaten' } }, series: [{ name: 'Page Total Likes', type: 'line', data: data["Page total likes"] }, { type: 'line', name: 'Post Month', data: data["Post Month"] }] });