ngDonut

Tiny Angular implementation of the D3 donut graph.
0 people use it
Author: 1528477?v=3 Wildhoney
Submitted by: 1528477?v=3 Wildhoney

ngDonut

Travis   npm   License MIT   Experimental

ngDonut is a tiny Angular and D3 component which renders a donut graph – which is capable of animation when the values change!


Getting Started

All that you need to do to begin is add the donut node to the DOM and attach your dataset using the ng-model attribute:

myDataset should be defined as an array of values:

ngDonut currently supports the following attributes: width, height, radius, colours.

Colours

You should define your colours attribute as an array of possible colours – otherwise ngDonut will utilise D3's ordinal colours.

comments powered by Disqus
This page was last updated over 2 years ago.