mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-20 11:33:59 +00:00
Added option for other charts (chartJS currently).
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user