Library that gives you possibility to draw pie charts in svg.
- Install node
- run
npm install svg-charts
- Clone repo
git clone https://github.com/arekgofi/svg-charts.git
- Install node
- run
npm install
-
import
import svgCharts from 'svg-charts
var svgc = svgCharts()
svgc.generatePieChartSVG(values,colors,radius,strokeSize,strokeColor);
-
script
<script src="build/index.js"></script>
var svgc = svgCharts()
svgc.generatePieChartSVG(values,colors,radius,strokeSize,strokeColor);
cd examples\google-maps
- open index.html in your browser
cd examples\just-pie-chart
- open index.html in your browser
Returns pie chart svg node
Params:
@param {number[]} values
@param {string[]} colors
@param {number} radius
@param {number} [strokeSize=0]
@param {string} [strokeColor="white"]