diff --git a/templates/mathlib_stats.html b/templates/mathlib_stats.html
index ea1ab0c94f..620d26403c 100644
--- a/templates/mathlib_stats.html
+++ b/templates/mathlib_stats.html
@@ -74,111 +74,222 @@
Dependency graph
-
+
+
-var color = Chart.helpers.color;
-var blue = 'rgb(54, 162, 235)'
-
-function makeBarChart(id, title, data) {
- var barChartData = {
- labels: data.labels,
- datasets: [{
- backgroundColor: color(blue).alpha(0.5).rgbString(),
- borderColor: blue,
- borderWidth: 1,
- data: data.data
- }]
- };
+
{% endblock %}