Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart.Scatter support for Polymer #16

Open
sandro-k opened this issue Jul 24, 2015 · 0 comments
Open

Chart.Scatter support for Polymer #16

sandro-k opened this issue Jul 24, 2015 · 0 comments

Comments

@sandro-k
Copy link
Contributor

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant