Browse Source

enlever le lundi et dimanche dans les graphes

christophe hachin 5 years ago
parent
commit
da6930260c
1 changed files with 7 additions and 13 deletions
  1. 7 13
      WebContent/js/mixChart.js

+ 7 - 13
WebContent/js/mixChart.js

@@ -1,15 +1,11 @@
 var labels = [
-    "sunday",
-    "monday",
-    "tuesday",
-    "wednesday",
-    "thursday",
-    "friday",
-    "saturday"
+    "Mardi",
+    "Mercredi",
+    "Jeudi",
+    "Vendredi",
+    "Samedi"
 ];
 var frequentations = [
-    20,
-    14,
     12,
     15,
     18,
@@ -17,8 +13,6 @@ var frequentations = [
     22
 ];
 var moyennes = [
-    15,
-    17,
     17,
     19,
     18,
@@ -33,14 +27,14 @@ var mixChart = new Chart(mix, {
         datasets: [
             {
                 type: 'line',
-                label: "monthly average",
+                label: "Moyenne mensuelle",
                 data: moyennes,
                 borderColor: 'rgba(75, 192, 192, 1)',
                 backgroundColor: 'rgba(0, 0, 0, 0)',
                 yAxisID: 'frequentations',
             },
             {
-                label: "This week",
+                label: "Cette semaine",
                 data: frequentations,
                 borderColor: 'rgba(0, 0, 0, 0)',
                 backgroundColor: 'rgba(192, 75, 192, 0.5)',