Removed some charts, removed lots of dead code.

This commit is contained in:
James Cole
2014-12-13 20:03:44 +01:00
parent 9ab0a83f7c
commit c77b43458e
66 changed files with 197 additions and 9222 deletions

View File

@@ -224,43 +224,3 @@ function googlePieChart(URL, container, options) {
console.log('No container found called "' + container + '"');
}
}
function googleSankeyChart(URL, container, options) {
if ($('#' + container).length == 1) {
$.getJSON(URL).success(function (data) {
/*
Get the data from the JSON
*/
gdata = new google.visualization.DataTable(data);
/*
Format as money
*/
if (gdata.getNumberOfRows() < 1) {
$('#' + container).parent().parent().remove();
return;
} else if (gdata.getNumberOfRows() < 6) {
defaultSankeyChartOptions.height = 100
} else {
defaultSankeyChartOptions.height = 400
}
/*
Create a new google charts object.
*/
var chart = new google.visualization.Sankey(document.getElementById(container));
/*
Draw it:
*/
chart.draw(gdata, options || defaultSankeyChartOptions);
}).fail(function () {
$('#' + container).addClass('google-chart-error');
});
} else {
console.log('No container found called "' + container + '"');
}
}