]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5877 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 06:52:53 +0000 (08:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 06:52:53 +0000 (08:52 +0200)
app/Fluidbook/Stats.php
resources/views/fluidbook_stats/summary.blade.php

index e90380b19b1ce25d00c37ade11870a3524d61429..e80838a329c8c1f5983d3ca7e852c985727d1546 100644 (file)
@@ -264,9 +264,9 @@ class Stats extends Reporting
         $res = [
             [
                 'label' => __('Visites'),
-                'backgroundColor' => 'hsl(72 100% 38% / 100%)', // Could make bars semi-transparent if desired
-                // borderColor: 'hsl(72 100% 38%)',
-                // borderWidth: 1,
+                'backgroundColor' => '#f54d00', // Could make bars semi-transparent if desired
+                'borderColor'=> '#000000',
+                'borderWidth'=> 1,
                 'data' => $this->_pagesByPeriod->pluck('nb_visits')->toArray(),
                 'order' => 1,
                 'bar_offset' => -5, // Negative offset shifts bar to left
@@ -274,7 +274,9 @@ class Stats extends Reporting
             ],
             [
                 'label' => __('Pages vues'),
-                'backgroundColor' => 'hsl(0 0% 53%)',
+                'backgroundColor' => '#514e49',
+                'borderColor'=> '#000000',
+                'borderWidth'=> 1,
                 'data' => $this->_pagesByPeriod->pluck('nb_hits')->toArray(),
                 'order' => 2,
                 'bar_offset' => 5, // Positive offset shifts bar to right
@@ -287,7 +289,9 @@ class Stats extends Reporting
             $res = array_merge([
                 [
                     'label' => __('Visiteurs uniques'),
-                    'backgroundColor' => 'hsl(19 100% 48% / 100%)',
+                    'backgroundColor' => 'hsl(72 100% 38% / 100%)',
+                    'borderColor'=> '#000000',
+                    'borderWidth'=> 1,
                     'data' => $this->_pagesByPeriod->pluck('nb_uniq_visitors')->toArray(),
                     'order' => 1,
                     'bar_offset' => -8, // Negative offset shifts bar to left
index b695a009e32a204d4a974aa5996cb41d348f7720..fa688b561efd1858aeb523ebb4bc283c6d7b7620 100644 (file)
                 options: {
                     responsive: true,
                     maintainAspectRatio: false,
-                    maxBarThickness: 50, // Prevent bars being ridiculously wide when there isn't much data
+                    maxBarThickness: 20, // Prevent bars being ridiculously wide when there isn't much data
                     scales: {
                         x: {stacked: true},
                         y: {
                             position: 'right',
                             reverse: false,
                             ticks: {
-                                color: '#9bc200',
+                                color: '#f54d00',
                             },
                             grid: {
                                 drawOnChartArea: false // only want the grid lines for one axis to show up