D3 with Backbone / D3 with Angular / D3 with Ember?

后端 未结 7 906
孤独总比滥情好
孤独总比滥情好 2020-12-23 12:24

I\'m working on a medium sized application that is going to include a lot of D3 charts / interactions in it. I\'m wondering if anyone has tried to use Backbone, Angular, or

相关标签:
7条回答
  • 2020-12-23 13:27

    I have used D3 with Angular on a few dashboards, and it worked very well. I have never really used Backbone, and not with D3, so I cannot compare the two. I chose Angular to complement D3 because it appeared to me that lately the D3 community has been using D3 with Angular the most of the three options you mentioned, so there were great resources available. There has recently been an entire book dedicated to using D3 and Angular together. I had also used Angular a bit before, and was aware of directives. Directives (in Angular it is a way to extend html tags) are great for meshing with D3. Each chart can become a directive, and then makes it extremely easy to reuse charts, changing only the $scope data. These are some resources I found helpful when combining the two:

    https://www.youtube.com/watch?v=aqHBLS_6gF8
    https://leanpub.com/d3angularjs
    http://plnkr.co/edit/WnoCtNPV9azj0oPwv9kM?p=preview
    http://vicapow.github.io/angular-d3-talk/slides/demos/a-donut-chart-editor/index.html#/

    0 讨论(0)
提交回复
热议问题