From b4cf68b1eb6247489e30a733556388aba05c1861 Mon Sep 17 00:00:00 2001 From: Rob Lewis Date: Sat, 21 Oct 2023 17:48:27 -0400 Subject: [PATCH] update stats page to show both mathlib3 and mathlib4 --- templates/mathlib_stats.html | 307 ++++++++++++++++++++++++----------- 1 file changed, 209 insertions(+), 98 deletions(-) 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 %}