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() {
  }

}
