wait until all the javascript is loaded before the chart tries to display. this makes sure that d3 is loaded first