From a381751c790b4b6eaf67193e84ad2043e7df6a5b Mon Sep 17 00:00:00 2001
From: p2312013 <amira.rabehi@etu.univ-lyon1.fr>
Date: Tue, 14 Jan 2025 10:19:50 +0100
Subject: [PATCH] fixed legend

---
 static/js/main.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/static/js/main.js b/static/js/main.js
index 90223e1..6c145ac 100644
--- a/static/js/main.js
+++ b/static/js/main.js
@@ -1532,7 +1532,7 @@ function renderSleepActivityVisualization() {
         .attr("x", width / 2)
         .attr("y", 40)
         .attr("text-anchor", "middle")
-        .text("Steps");
+        .text("Nombres de pas");
 
       g.append("g")
         .call(d3.axisLeft(y))
@@ -1542,7 +1542,7 @@ function renderSleepActivityVisualization() {
         .attr("x", -height / 2)
         .attr("y", -40)
         .attr("text-anchor", "middle")
-        .text("Sleep (hours)");
+        .text("Nombres d'heurs de sommeil");
 
       const legend = svg
         .append("g")
@@ -1573,7 +1573,7 @@ function renderSleepActivityVisualization() {
         .append("text")
         .attr("x", 0)
         .attr("y", Object.keys(colorMap).length * 20 + 50)
-        .text(" burned calories ");
+        .text("calories brûlées");
 
       legend
         .append("circle")
@@ -1631,7 +1631,7 @@ function renderSleepActivityVisualization() {
             tooltip
               .style("visibility", "visible")
               .text(
-                `${d.name}: Steps: ${d.steps}, Sleep: ${d.sleep}, Calories: ${d.calories}`
+                `${d.name}: Pas: ${d.steps}, Sommeil: ${d.sleep}, Calories: ${d.calories}`
               );
           })
           .on("mousemove", (event) => {
-- 
GitLab