Pie chart generator for markvis in browser and node.js.
MIT License
Pie chart generator for markvis in browser and node.js.
npm install markvis-pie --save
or use yarn
yarn add markvis-pie --save
const markvisPie = require('markvis-pie');
const pie = markvisPie({ data, d3, d3node })
Check out the example for usage.
npm run example
Array
Data from file or web processed by d3 library.
Object
d3 library which used in browser environment.
Object
d3-node constructor which used in node environment.
String
'#chart'
DOM selector in container.
String
<div id="container"><h2>Pie Chart</h2><div id="chart"></div></div>
DOM contained the visualization result.
String
.arc text {
font: 10px sans-serif;
text-anchor: middle;
}
.arc path {
stroke: #fff;
}
Pie chart style.
Number
960
SVG width for pie chart.
Number
width / 2 * 0.9
Radius for pie chart.
boolean
false
Whether to export to a PNG image.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
markvis-pie © geekplux, Released under the MIT License. Authored and maintained by geekplux with help from contributors (list).
geekplux.com · GitHub @geekplux · Twitter @geekplux