Files
firefly-iii/public/assets/javascript/firefly/index.js

47 lines
1.0 KiB
JavaScript
Raw Normal View History

/*
This line is required to be properly triggered by Google.
*/
google.setOnLoadCallback(drawChart);
function drawChart() {
console.log(1);
googleLineChart('chart/home/account', 'accounts-chart');
2014-10-29 10:30:52 +01:00
googleBarChart('chart/home/budgets','budgets-chart');
googleColumnChart('chart/home/categories','categories-chart');
googlePieChart('chart/home/recurring','recurring-chart')
}
$(function () {
//googleLineChart();
/**
* get data from controller for home charts:
*/
$.getJSON('chart/home/account').success(function (data) {
//$('#accounts-chart').highcharts(options);
});
/**
* Get chart data for categories chart:
*/
$.getJSON('chart/home/categories').success(function (data) {
//$('#categories-chart');
});
/**
* Get chart data for budget charts.
*/
$.getJSON('chart/home/budgets').success(function (data) {
//$('#budgets-chart');
2014-09-11 10:09:09 +02:00
});
$.getJSON('chart/home/recurring').success(function (data) {
//$('#recurring-chart');
});
});