You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemmhmg/Mohem/src/app/hmg-common/ui/donut-chart/donut-chart.component.ts

24 lines
469 B
TypeScript

import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'donut-chart',
templateUrl: './donut-chart.component.html',
styleUrls: ['./donut-chart.component.scss']
})
export class DonutChartComponent implements OnInit {
// options
@Input() legend = true;
@Input() arcWidth = 0.25;
@Input() colorScheme = {
domain: ['#3880ff' , '#ccdeff']
};
@Input() data: any[] ;
view = [0, 0];
constructor() { }
ngOnInit() {
}
}