🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@granite-elements/granite-c3

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@granite-elements/granite-c3

A lightweight element wrapping-up C3.js, D3-based chart library.

latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
1
Created
Source

Published on webcomponents.org Vaadin Directory availability

granite-c3

A lightweight element wrapping-up C3.js, D3-based chart library

Based on Polymer 3.x. The legacy Polymer 2.x version is available here

Doc & demo

https://lostinbrittany.github.io/granite-c3

Usage

<granite-c3 data='{"x": "x", "columns": [["x", "2013-01-01", "2013-01-02", "2013-01-03", "2013-01-04", "2013-01-05", "2013-01-06"],["data1", 30, 200, 100, null, 150, 250],["data2",130, 340, 200, null, 200, 350]],"type": "step"}' axis='{ "x": {"type": "timeseries", "tick": { "format": "%Y-%m-%d"} } }'></granite-c3>

Install

Install the component using Bower:

$ bower install LostInBrittany/granite-c3 --save

Or download as ZIP.

Usage

  • Import Web Components' polyfill (if needed):

    <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
    
  • Import Custom Element:

    <link rel="import" href="bower_components/granite-c3/granite-c3.html">
    
  • Start using it!

    <granite-c3 data="{{data}}" axis="{{axis}}"></granite-c3>
    

Contributing

  • 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

License

MIT License

Keywords

web-component

FAQs

Package last updated on 24 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts