Ember-highcharts
A Highcharts component for Ember CLI.
Installation
ember install:addon ember-highcharts
Usage
In your template:
{{high-charts content=chartData chartOptions=chartOptions}}
Then in a controller you can set the chartData
and chartOptions
values:
import Ember from 'ember';
export default Ember.Controller.extend({
chartOptions: {
chart: {
type: 'bar'
},
title: {
text: 'Fruit Consumption'
},
xAxis: {
categories: ['Apples', 'Bananas', 'Oranges']
},
yAxis: {
title: {
text: 'Fruit eaten'
}
}
},
chartData: [
{
name: 'Jane',
data: [1, 0, 4]
}, {
name: 'John',
data: [5, 7, 3]
}
]
});
Credit
This add-on is built based on the gist and medium by @poteto