firefly-iii/public/assets/javascript/firefly/accounts.js
2014-11-28 07:40:04 +01:00

12 lines
554 B
JavaScript

$(function () {
if (typeof(googleLineChart) == "function" && typeof accountID != 'undefined' && typeof view != 'undefined') {
googleLineChart('chart/account/' + accountID + '/' + view, 'overview-chart');
}
//
if (typeof(googleSankeyChart) == 'function' && typeof accountID != 'undefined' && typeof view != 'undefined') {
googleSankeyChart('chart/sankey/' + accountID + '/out' + '/' + view, 'account-out-sankey');
googleSankeyChart('chart/sankey/' + accountID + '/in' + '/' + view, 'account-in-sankey');
}
});