add title to xaxis

This commit is contained in:
tim-herbst 2021-01-01 14:59:22 +01:00
parent 01e47b9656
commit 82b8b8bd74
2 changed files with 13 additions and 1 deletions

View File

@ -188,7 +188,7 @@
<mat-card-title>Rental Time</mat-card-title>
<mat-card-subtitle>
This chart shows the workload of the currently selected Station in relation
of the time of the day. It is visualized at which time of the day a journey begins or ends.
of the time of the day. It is visualized at which time of the day a journey begins or ends (blue).
In addition, the average rental duration of the trips is displayed at the given time (green).
</mat-card-subtitle>
</mat-card-header>

View File

@ -297,6 +297,9 @@ export class DashboardComponent implements OnInit {
colors: ['transparent']
},
xaxis: {
title: {
text: 'average rental duration'
},
categories: minutesGroup,
labels: {
formatter: value => {
@ -358,6 +361,9 @@ export class DashboardComponent implements OnInit {
curve: 'straight'
},
xaxis: {
title: {
text: 'time of the day'
},
categories: timeFrame,
tickAmount: 24,
tickPlacement: 'between',
@ -454,6 +460,9 @@ export class DashboardComponent implements OnInit {
colors: ['transparent']
},
xaxis: {
title: {
text: 'average rental duration'
},
categories: minutesGroup,
labels: {
formatter: value => {
@ -513,6 +522,9 @@ export class DashboardComponent implements OnInit {
curve: 'straight'
},
xaxis: {
title: {
text: 'time of the day'
},
categories: timeFrame,
tickAmount: 24,
tickPlacement: 'between'