Skip to content

Commit

Permalink
My simple workaround
Browse files Browse the repository at this point in the history
It waits for all function complete process and then shows chart.
  • Loading branch information
bsalves authored Jan 18, 2017
1 parent 701c784 commit c5295f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/highcharts-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.ex
};
prevConfig = angular.merge({}, ctrl.config);
mergedConfig = getMergedOptions($element, ctrl.config, seriesId);
ctrl.chart = new Highcharts[getChartType(mergedConfig)](mergedConfig);

setTimeout(function(){
ctrl.chart = new Highcharts[getChartType(mergedConfig)](mergedConfig);
});
};

this.$doCheck = function() {
Expand Down

0 comments on commit c5295f5

Please sign in to comment.