score:2

"$('#city_filter').on('change',function(e) {
    $.ajax({
        url: ". $quotedUrl . ",
        data: { 'cities': e.val },
        success: function(data) {
            $('#name_span').text(data[0]);
            var chart = $('#shop_pie').highcharts();
            chart.series[0].setData(data[1]); // THIS IS WHERE I NEED TO BE ABLE TO REFERENCE THE CHART
        }
    });
});",

referring to http://api.highcharts.com/highcharts#Series.setData

and example from that article http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/members/series-setdata/


Related Articles