diff --git a/frontend/src/app/components/graph/graph.component.ts b/frontend/src/app/components/graph/graph.component.ts index d2bb7a0..f2eb6c0 100644 --- a/frontend/src/app/components/graph/graph.component.ts +++ b/frontend/src/app/components/graph/graph.component.ts @@ -18,6 +18,8 @@ export class GraphComponent implements AfterViewInit { colors: string[] = []; @Input() formatSting: string; + @Input() + graphType = 'line'; readonly randomId = uuidv4(); @@ -28,7 +30,7 @@ export class GraphComponent implements AfterViewInit { const data: ChartDataSeriesOptions[] = []; for (const monthlyData of this.monthlyDatas) { data.push({ - type: 'line', + type: this.graphType, color: 'black', showInLegend: this.labels.length > 0, yValueFormatString: this.formatSting, diff --git a/frontend/src/app/containers/region-details/region-details.component.html b/frontend/src/app/containers/region-details/region-details.component.html index 4150ad5..4b38d8c 100644 --- a/frontend/src/app/containers/region-details/region-details.component.html +++ b/frontend/src/app/containers/region-details/region-details.component.html @@ -53,6 +53,16 @@ + + + + + +