granite-c3

WebJar for granite-c3

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.lostinbrittany
ArtifactId

ArtifactId

granite-c3
Last Version

Last Version

2.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

granite-c3
WebJar for granite-c3
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/LostInBrittany/granite-c3

Download granite-c3

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.lostinbrittany/granite-c3/ -->
<dependency>
    <groupId>org.webjars.bowergithub.lostinbrittany</groupId>
    <artifactId>granite-c3</artifactId>
    <version>2.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.lostinbrittany/granite-c3/
implementation 'org.webjars.bowergithub.lostinbrittany:granite-c3:2.2.2'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.lostinbrittany/granite-c3/
implementation ("org.webjars.bowergithub.lostinbrittany:granite-c3:2.2.2")
'org.webjars.bowergithub.lostinbrittany:granite-c3:jar:2.2.2'
<dependency org="org.webjars.bowergithub.lostinbrittany" name="granite-c3" rev="2.2.2">
  <artifact name="granite-c3" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.lostinbrittany', module='granite-c3', version='2.2.2')
)
libraryDependencies += "org.webjars.bowergithub.lostinbrittany" % "granite-c3" % "2.2.2"
[org.webjars.bowergithub.lostinbrittany/granite-c3 "2.2.2"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.c3js : c3 jar [0.4.11,0.5)
org.webjars.bowergithub.mbostock-bower : d3-bower jar [3.5.17,4)
org.webjars.bowergithub.lostinbrittany : granite-js-dependencies-grabber jar [1.1.0,2)

Project Modules

There are no modules declared in this project.

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

  1. Import Web Components' polyfill (if needed):

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

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

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

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

Versions

Version
2.2.2