Only attempt to create the chart when the charts js has loaded.