Skip to content

📈 Ember component library for C3, a D3-based reusable chart library.

License

Notifications You must be signed in to change notification settings

raphaelgera/ember-c3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ember component library for C3, a D3-based reusable chart library.

Live Demo: http://glavin001.github.io/ember-c3/dist/

Alternatively take a look at Ember-NVD3 for your charting needs.


Usage

Install with Bower

bower install --save ember-c3

Include C3 and the library's script in your application:

<link rel="stylesheet" href="bower_components/c3/c3.css">

<script src="bower_components/d3/d3.min.js"></script>
<script src="bower_components/c3/c3.min.js"></script>
<script src="bower_components/ember-c3/build/lib.js"></script>

or Ember-CLI users add these to your Brocfile.js

app.import('bower_components/d3/d3.min.js');
app.import('bower_components/c3/c3.css');
app.import('bower_components/c3/c3.min.js');
app.import('bower_components/ember-c3/build/lib.js');

Using the Ember Component

Basic

Where model is your C3 data:

{{c3-chart data=model}}

Advanced

See http://c3js.org/examples.html for examples of how to use C3.

{{c3-chart
  data=model
  axis=axis
  regions=regions
  bar=bar
  pie=pie
  donut=donut
  gauge=gauge
  grid=grid
  legend=legend
  tooltip=tooltip
  subchart=subchart
  zoom=zoom
  size=size
  padding=padding
  color=color
  transition=transition
  point=point
  }}

Developing

After cloning repository, install library dependencies.

npm install
bower install

Then build with grunt.

grunt serve

About

📈 Ember component library for C3, a D3-based reusable chart library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.7%
  • HTML 9.7%
  • Handlebars 7.7%
  • CSS 0.9%