From ec9e9a8781d3209145a2795f2a7988f94a023843 Mon Sep 17 00:00:00 2001 From: DarkMax31 Date: Wed, 27 Aug 2025 15:50:36 +0200 Subject: [PATCH 1/4] Code html pour graphique Radar --- views/index.ejs | 78 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 68 insertions(+), 10 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index 06f8e5f..bec8e48 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,15 +1,73 @@ - + - Accueil + + Diagramme Radar avec Chart.js + - <% if (user) { %> -

Bienvenue, <%= user.username %>!

- Déconnexion - <% } else { %> -

Bienvenue sur Resto-EPI

- Connexion/Inscription via Discord - <% } %> +
+ +
+ + - + \ No newline at end of file From 8db9dcd40d6840f66bc3949228999e197e36f1f7 Mon Sep 17 00:00:00 2001 From: DarkMax31 Date: Wed, 27 Aug 2025 15:52:24 +0200 Subject: [PATCH 2/4] color --- views/index.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/index.ejs b/views/index.ejs index bec8e48..ec5aab8 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -23,7 +23,7 @@ const radarChart = new Chart(ctx, { fill: true, backgroundColor: 'rgba(25, 80, 233, 0.2)', borderColor: 'rgb(25, 80, 233, 10)', - pointBackgroundColor: 'rgb(255, 99, 132)', + pointBackgroundColor: 'rgb(55, 99, 132)', pointBorderColor: '#fff', pointHoverBackgroundColor: '#fff', pointHoverBorderColor: 'rgb(255, 99, 132)', From 6b77327af8d0354d78f1ddbc4f399a279eda7cb8 Mon Sep 17 00:00:00 2001 From: DarkMax31 Date: Wed, 27 Aug 2025 16:04:42 +0200 Subject: [PATCH 3/4] hiding leg + other things --- views/index.ejs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/views/index.ejs b/views/index.ejs index ec5aab8..14b1815 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -35,6 +35,9 @@ const radarChart = new Chart(ctx, { }, options: { plugins: { + legend: { + display: false + }, tooltip: { callbacks: { label: function(context) { From 8a9ca97a805d755e3395234d938bf4a3c1c4da1c Mon Sep 17 00:00:00 2001 From: DarkMax31 Date: Wed, 27 Aug 2025 16:20:56 +0200 Subject: [PATCH 4/4] rename --- views/{index.ejs => graphique.ejs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename views/{index.ejs => graphique.ejs} (100%) diff --git a/views/index.ejs b/views/graphique.ejs similarity index 100% rename from views/index.ejs rename to views/graphique.ejs