Hello I have a problem storing my json in a global variable, what I want is to do first all my ajax request then store each of the returned data to a global variable, but it seems it's not working correctly? Can Any help me to my problem? Thanks. :)
var series;
function columnChart(container)
{
url = base_url+"/codeigniter/index.php/AssistanceMonitoringModule/assistanceMonitoring/getSeries";
 $.ajax(
            {
            type: "GET",
            url: url,
            success: function(data){
                series = data;
            },
            dataType: "json",
            error: function (xhr, ajaxOptions, thrownError) {
                alert("XHR:"+xhr.status+"Error:"+thrownError);
              }
            });
 callColumnChart(container,series);
}
 
    