ngx-doughnut-chart
ngx-doughnut-chart
is a light weight with no dependencies angular component to draw donut charts using svgs.
Installation
All you need to do is to run the following command:
$ npm i ngx-doughnut-chart --save
or
$ yarn add ngx-doughnut-chart --save
Usage
Import NgxDonutChartModule module into your main module and add it to imports:
;; ; ; ... Pass data like this: ```typescript donutChartData = [ { label: 'Liverpool FC', value: 5, color: 'red', }, { label: 'Real Madrid ', value: 13, color: 'black', }, { label: 'FC Bayern München', value: 5, color: 'blue', },];
and then use the component in your html like:
License
MIT © ahmedbassell