From 110f8f2595d092e06c8b701939e57716604fe972 Mon Sep 17 00:00:00 2001 From: Tim Herbst Date: Sun, 27 Dec 2020 11:44:34 +0100 Subject: [PATCH] change dashboard user-input alignment --- .../app/dashboard/dashboard.component.html | 70 ++++++++++--------- .../app/dashboard/dashboard.component.scss | 2 + .../src/app/dashboard/dashboard.component.ts | 2 + 3 files changed, 41 insertions(+), 33 deletions(-) diff --git a/projects/project-3/frontend/src/app/dashboard/dashboard.component.html b/projects/project-3/frontend/src/app/dashboard/dashboard.component.html index 11c914f..736ad2a 100644 --- a/projects/project-3/frontend/src/app/dashboard/dashboard.component.html +++ b/projects/project-3/frontend/src/app/dashboard/dashboard.component.html @@ -18,39 +18,43 @@
-
- - -
- - Enter a range - - - - - - - -
-
- -
-
-
-
- - -
- {{bikePoint?.commonName}} -
- -

{{bikePoint?.status.NbBikes}}

-
-
+
+
+
+ + +
+ {{bikePoint?.commonName}} +
+ +

{{bikePoint?.status.NbBikes}}

+
+
+
+
+ + +
+ + Enter a range + + + + + + + +
+
+ +
+
+
+
diff --git a/projects/project-3/frontend/src/app/dashboard/dashboard.component.scss b/projects/project-3/frontend/src/app/dashboard/dashboard.component.scss index 2e06df3..ac8afd9 100644 --- a/projects/project-3/frontend/src/app/dashboard/dashboard.component.scss +++ b/projects/project-3/frontend/src/app/dashboard/dashboard.component.scss @@ -24,6 +24,8 @@ a { .datepicker { margin-top: 2em; + margin-left: 1em; + margin-right: 1em } .submit-date { diff --git a/projects/project-3/frontend/src/app/dashboard/dashboard.component.ts b/projects/project-3/frontend/src/app/dashboard/dashboard.component.ts index 7191ebe..a7e698d 100644 --- a/projects/project-3/frontend/src/app/dashboard/dashboard.component.ts +++ b/projects/project-3/frontend/src/app/dashboard/dashboard.component.ts @@ -140,6 +140,7 @@ export class DashboardComponent implements OnInit { type: 'bar', height: chartHeight }, + colors: ['#017bfe'], plotOptions: { bar: { horizontal: false, @@ -202,6 +203,7 @@ export class DashboardComponent implements OnInit { enabled: true } }, + colors: ['#017bfe', '#51ca49'], dataLabels: { enabled: false },