An EmberJS echarts wrapper
Shout-out to @offirgolan as a lot of this was stolen from: ember-cli-nvd3 🍕
ember install ember-cli-echarts
If it is a bug please open an issue on GitHub.
Before using this addon, you might want to checkout the echarts Docs
All you need to get started is to specify which type of chart you want and the data it should display
All chart specific options can be specified via the options
property.
// Basic area chart
option = {
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
areaStyle: {}
}]
};
Currently there are two helper actions provided:
This is called before echarts has been initialized.
beforeSetup(context, chart) {}
This is called after all chart options and data have been set, as well as after the chart has been created.
afterSetup(context, chart) {}
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.