Choose between ChartType
All checks were successful
Java CI with Maven / test (push) Successful in 35s
Java CI with Maven / build-and-push-frontend (push) Successful in 7s
Java CI with Maven / build-and-push-backend (push) Successful in 7s

This commit is contained in:
Sebastian Böckelmann 2023-11-19 15:36:34 +01:00
parent 9a186fce5a
commit b71513a74b
2 changed files with 14 additions and 6 deletions

View File

@ -1,11 +1,17 @@
<div class="container">
<app-navigation-link-list #navLinkList [navigationLinks]="defaultNavigationLinkPath"></app-navigation-link-list>
<mat-form-field style="width: 100%">
<mat-form-field style="width: 90%">
<mat-label>Toppings</mat-label>
<mat-select [(ngModel)]="selectedTaskgroupPath" (ngModelChange)="updateSerieSelection()">
<mat-option *ngFor="let topping of taskgroupPaths" [value]="topping">{{topping.taskgroupPath}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width: 10%;">
<mat-label>Toppings</mat-label>
<mat-select [(ngModel)]="selectedChartype" (ngModelChange)="updateSerieSelection()">
<mat-option *ngFor="let topping of availableChartTypes" [value]="topping">{{topping}}</mat-option>
</mat-select>
</mat-form-field>
<div style="text-align:center">
<apx-chart

View File

@ -7,7 +7,7 @@ import {
ApexAxisChartSeries,
ApexChart,
ApexXAxis,
ApexTitleSubtitle
ApexTitleSubtitle, ChartType
} from "ng-apexcharts";
import {timeInterval} from "rxjs";
import {FormControl} from "@angular/forms";
@ -41,7 +41,8 @@ export class TaskgroupActivityComponent implements OnInit{
];
selectedChartype: string = "bar";
availableChartTypes: string[] = ["bar", "line", "area"]
selectedTaskgroupPath: TaskgroupPathInfo | undefined
taskgroupPaths: TaskgroupPathInfo[] = []
sliderControl: FormControl = new FormControl()
@ -109,12 +110,13 @@ export class TaskgroupActivityComponent implements OnInit{
}
generateChartOptions(): Partial<ChartOptions> {
return {
series: this.generateSeries(),
chart: {
height: 350,
type: "bar",
stacked: false
height: 350,
type: this.selectedChartype as ChartType,
stacked: true
},
title: {
text: ""