Here is an example.

I do dynamic update series [] and categories [] .

With categories , everything options.xAxis.categories out via options.xAxis.categories passing $data[0] = array();

Tell me how to pass the six results in the series .

In the example, it looks like this:

 series: [{ name: 'John', data: [5, 3, 4, 7, 2] }, { name: 'Jane', data: [2, -2, -3, 2, 1] }, { name: 'Joe', data: [3, 4, 4, -2, 5] }] 

GrafSub400.js

  $.ajax({ type: "POST", url: "php/grafSub400.php", data: {"type": type, "id_dev": id_dev}, cache: false, dataType: 'json', success: function(response){ data = eval(response); options.xAxis.categories = data[0]; // options.series.data = data[1]; // ???? var chart = new Highcharts.Chart(options); } }); 

grafSub400.php

 $data[0] = array(); $data[1] = array(); do { $data[0][] = $mynum['zav_num']; $sub400_id = $mynum['id']; $result = mysql_query("SELECT * FROM SUB_REZ WHERE sub400_id='$sub400_id' AND sub_rez_name_id='$type'"); $myrow = mysql_fetch_assoc($result); $data[1][] = ???? //$myrow['r1'] .... $myrow['r6'] } while ($mynum = mysql_fetch_assoc($resnum)); echo json_encode($data); 

    0