Chart.Scatter
Chart.Scatter copied to clipboard
Chart.Scatter support for Polymer
Hi,
Polymer is a library to create custom HTML elements aka WebComponents. There was already a library to encapsulate Chart.js robdodson/chart-elements to create chart elements supported by Chart.js with minimal HTML. To draw a line chart you could declare it in your html with:
<chart-line data="{{data}}" options="{{options}}"></chart-line>
I have forked robdodson/chart-elements and updated it to Polymer 1.0 and added support for Chart.Scatter in the 1.0 branch.
Now you can create a scattered chart with
<chart-scatter data="{{data}}" options="{{options}}"></chart-scatter>
Please give it a try :)