aomran / ember-cli-chart

A simple ember component for adding Charts
https://www.npmjs.org/package/ember-cli-chart
MIT License
138 stars 76 forks source link

Ember Chart

CI Ember Observer Score

This Ember CLI addon is a simple wrapper for ChartJS (v3.5).

Compatibility

Installation

$ ember install ember-cli-chart

Usage

In your handlebars template just do:

<EmberChart
  @type={{CHARTTYPE}}
  @data={{CHARTDATA}}
  @options={{CHARTOPTIONS}}
  @width={{CHARTWIDTH}}
  @height={{CHARTHEIGHT}}
  @plugins={{CHARTPLUGINS}}
  @customLegendElement={{CUSTOMLEGENDELEMENT}}
/>

Example

<EmberChart @type="pie" @data={{model.chartData}} @width={{200}} @height={{200}} />

More Resources