Adding new HighChart Series
At this code javascrip give an error $.each(JSON, function(i, array) { chart.series[i].name = array.teamName; chart.series[i].setData(array.teamPower, true); }); I must define the chart.series[i] because it say "Cannot set property 'name' of undefined" but i can't find a way in order to do this. Because it fonction runs with requestData so it came after chart determine with options function showGraph() { chart = new Highcharts.Chart(option); } chart: { renderTo: 'graphicShow', type: 'spline', events: { load: requestData } } ...in option... title: { text: 'Power %' }, series: [] ... You need to