A simple ember component for adding Charts
MIT License
This Ember CLI addon is a simple wrapper for ChartJS (v3.5).
$ ember install ember-cli-chart
In your handlebars template just do:
<EmberChart
@type={{CHARTTYPE}}
@data={{CHARTDATA}}
@options={{CHARTOPTIONS}}
@width={{CHARTWIDTH}}
@height={{CHARTHEIGHT}}
@plugins={{CHARTPLUGINS}}
@customLegendElement={{CUSTOMLEGENDELEMENT}}
/>
line
, bar
, radar
, polarArea
, pie
or doughnut
.legendCallback
. This is optional.<EmberChart @type="pie" @data={{model.chartData}} @width={{200}} @height={{200}} />