Git Product home page Git Product logo

ember-c3's Introduction

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

ember-c3's People

Contributors

glavin001 avatar robdel12 avatar frozenfire92 avatar andyo0729 avatar baltazore avatar aaronrenner avatar jeff-phillips-18 avatar benjaminrh avatar tehviking avatar backspace avatar shingara avatar potomak avatar jsvg avatar egeriis avatar wwilsman avatar raphaelgera avatar coyotl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.