score:2

Accepted answer

i guess the problem is due to asyn nature of $.getjson, when you call: $('#chart').highcharts({ right after that, the response from the server does not arrive yet. try changing it to:

$.getjson(url, function(data) {
            $.each(data, function(index, data) {
                zone_name.push(data.name);
                male_pop.push(parseint(data.pop_male));
                female_pop.push(parseint(data.pop_female));
            });

        //    $('#chart').highcharts({
        });

Related Query

More Query from same tag