javascript - Asynchronous data input in highcharts -
i loading data mysql database using $.getjson method. data displayed in highcharts. there different buttons user can click in order change between datasets. problem when page first loaded, chart load empty. found out because $.getjson method using retrieving data asynchronous. not sure whether can resolved switching getjson method ajax method. have tried did not succeed. or whether javascript function switching chart data upon button-clicks problem. below code. fragments of code think responsible problem showed below. know might want jsfiddle since using database data know how display problem. <script> var d = new date(); var pointstart = d.gettime(); //------------------------------------------------------- //set 'line' marker type use in bullet charts highcharts.renderer.prototype.symbols.vline = function(x, y, width, height) { return ['m', x, y + width / 2, 'l', x + height, y + width / 2]; }; highcharts.renderer.prototype.symbol...