diff options
author | Nevena Bojovic <nenabojov@gmail.com> | 2022-04-26 21:05:08 +0200 |
---|---|---|
committer | Nevena Bojovic <nenabojov@gmail.com> | 2022-04-26 21:05:08 +0200 |
commit | 5857e1c71eda1ee6455d55ef9f8d1c10f75a8457 (patch) | |
tree | 3a1b766b7abc015f09482d8a9cdad899924ce698 /frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts | |
parent | e859227a3722f28f858d6bb4cedfdd7b868680ff (diff) |
Box plot-sredjeno.
Diffstat (limited to 'frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts')
-rw-r--r-- | frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts b/frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts index 4c7508fe..fc13289c 100644 --- a/frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts +++ b/frontend/src/app/_elements/_charts/doughnut-chart/doughnut-chart.component.ts @@ -1,4 +1,4 @@ -import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; +import { AfterViewInit, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core'; import {Chart} from 'node_modules/chart.js'; @Component({ @@ -8,6 +8,9 @@ import {Chart} from 'node_modules/chart.js'; }) export class DoughnutChartComponent implements AfterViewInit { + @Input()width: number = 800; + @Input()height: number = 450; + @ViewChild('doughnut') chartRef!: ElementRef; constructor() { } |