Added option for other charts (chartJS currently).

This commit is contained in:
James Cole
2015-06-27 12:21:04 +02:00
parent f6b1ec27e5
commit c581080f3f
5 changed files with 60 additions and 5 deletions

View File

@@ -1,6 +1,15 @@
/* globals $, columnChart, google, lineChart, pieChart, stackedColumnChart, areaChart */
google.setOnLoadCallback(drawChart);
$(function () {
"use strict";
if (typeof google !== 'undefined') {
// do google charts:
google.setOnLoadCallback(drawChart);
} else {
// do chart JS stuff.
drawChart();
}
});
function drawChart() {
"use strict";