A Polymer-element for drawing a Piechart on HTML5 Canvas
[ This description is mirrored from README.md at github.com/timeu/canvas-piechart on 2019-05-10 ]
A web-component to draw a piechart using Polymer and HTML5 Canvas.
This branch (master) works only with Polymer 2.x. For a Polymer 1.x version check out the 1.x branch
Versions (Polymer 2.x vs Polymer 1.x)
The master branch and all 2.x.x releases require
Polymer 1.x support use 1.x.x releases and the 1.x branch.
Check it live.
Install the component using Bower:
$ bower install --save canvas-piechart
Or download as ZIP.
- Import Web Components' polyfill:
- Import Custom Element:
<link rel="import" href="../canvas-piechart/canvas-piechart.html">
- Start using it!
<canvas-piechart size="250" data="[10,20,50,20]"></canvas-piechart>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Check Release list.
MIT License © Ümit Seren
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
- MIT License
- Polymer 2.0+
- Polymer 1.0+ in 1.1.0
- Browser Independent