Skip to content

Instantly share code, notes, and snippets.

@bmax
Created September 6, 2014 21:35
Show Gist options
  • Save bmax/283c16e7e133cbdebf33 to your computer and use it in GitHub Desktop.
Save bmax/283c16e7e133cbdebf33 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export
default Ember.View.extend({
templateName: 'driver',
didInsertElement: function() {
this._super();
var chart = c3.generate({
bindto: '#chart',
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
}
});
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment