diff --git a/projects/project-3/frontend/src/app/dashboard/rent-duration-chart/rent-duration-chart.component.ts b/projects/project-3/frontend/src/app/dashboard/rent-duration-chart/rent-duration-chart.component.ts index 58c9926..3c0be94 100644 --- a/projects/project-3/frontend/src/app/dashboard/rent-duration-chart/rent-duration-chart.component.ts +++ b/projects/project-3/frontend/src/app/dashboard/rent-duration-chart/rent-duration-chart.component.ts @@ -141,7 +141,7 @@ export class RentDurationChartComponent implements OnInit { async onSubmit(actualStartDate: string, actualEndDate: string): Promise { this.isLoading = true; - await this.service.fetchDashboardStationCharts( + this.service.fetchDashboardStationCharts( this.bikePoint.id, actualStartDate, actualEndDate, diff --git a/projects/project-3/frontend/src/app/service/map.service.ts b/projects/project-3/frontend/src/app/service/map.service.ts index 8e9eb17..297f9fd 100644 --- a/projects/project-3/frontend/src/app/service/map.service.ts +++ b/projects/project-3/frontend/src/app/service/map.service.ts @@ -210,10 +210,10 @@ export class MapService { drawLegend(): void { this.legend.onAdd = () => { const div = L.DomUtil.create('div', 'legend'); - div.innerHTML += `

trips from/to bike station

`; - div.innerHTML += `inbound to ${this.dashBoardBikePoint.commonName}
`; - div.innerHTML += `outbound from ${this.dashBoardBikePoint.commonName}
`; - div.innerHTML += `in- and outbound traffic line`; + div.innerHTML += `

Traffic lines

`; + div.innerHTML += `inbound
`; + div.innerHTML += `outbound
`; + div.innerHTML += `in- and outbound`; return div; }; this.legend.addTo(this.miniMap);