score:2

Accepted answer

could you build the chart inside the callback function instead of defining all the options first? maybe try something like this:

$.getjson('values.php', function (json) {

        $('#container').highcharts({
            series: [{
              data: json
            ]},
            title: {
              text: 'some title'
            },
            subtitle: ...

i can't demo the ajax request but if you put that json straight in the data option, the charts renders like this: jsfiddle


Related Query

More Query from same tag