diff --git a/static/js/main.js b/static/js/main.js index 90223e1197fd89830dd3afa7eddbaaaea5e9c86c..6c145ac4ce679dae2c4be360bab260a8333be23b 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) => {