Using d3

with Backbone, Angular and Ember



architecture


an example of bad code



http://opensoul.org/2012/05/16/the-plight-of-pinocchio/


An example of bad code



 

text: $(this).find('textarea').val()


Instead, use a model  



 

 $('#statuses').append('<li>' + data.text + '</li>');


Instead, use a directive


 

 $.ajax({url: '/statuses', success: function(data)  {...}


Instead, use a route



costs and benefits

of frameworks

Where does d3 fit in?


Data vis is becoming prominent:

  • Square
  • Localytics
  • Chart.io
  • Plotly
  • Addepar...