create-svg-pie
Create a SVG pie chart from number array.
Installation
npm install create-svg-pie --save
Usage
; const values = 5 10 15;const radius = 100; // Pie with default colorsconst pie = ;documentbody; // Pie with custom colorsconst palette = '#3cf''#f36''#fc3';const customPie = ;documentbody;
Example HTML output
<!-- Pie with default colors --> <!-- Pie with custom colors -->
Example image output
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 1.0.0 Initial release
Todo
- Create useful tests