Skip to content

Instantly share code, notes, and snippets.

@alexspeller
Created June 18, 2013 21:31
Show Gist options
  • Save alexspeller/5809625 to your computer and use it in GitHub Desktop.
Save alexspeller/5809625 to your computer and use it in GitHub Desktop.
App.BarChartView = Em.View.extend({
didInsertElement: function() {
var el = d3.select('#' + this.elementID);
el.select('rect').data(this.get('values')).enter().append('rect');
}
});
//template
{{view App.BarChartView valuesBinding=values}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment