Made big headway in preference management, accounts, importing stuff, etc. etc.

This commit is contained in:
James Cole
2014-07-06 15:18:11 +02:00
parent 188105492c
commit 4192f2bc8f
46 changed files with 672 additions and 187 deletions

View File

@@ -0,0 +1,21 @@
function drawChart(id,URL,opt) {
$.getJSON(URL).success(function (data) {
$(id).removeClass('loading');
// actually draw chart.
var gdata = new google.visualization.DataTable(data);
var money = new google.visualization.NumberFormat({decimalSymbol: ',', groupingSymbol: '.', prefix: '€ '});
money.format(gdata, 1);
var gID = id.substring(1);
var chart = new google.visualization.LineChart(document.getElementById(gID));
chart.draw(gdata, opt);
}).fail(function() {
console.log('Could not load chart for URL ' + URL);
$(id).addClass('load-error');
});
}