3 ms·
I spent a good portion of my internship last summer working with d3 at Splunk, just wanted to say thanks for the cool framework. I love the "data", "enter", and
by ninetax 14y ago
I spent a good portion of my internship last summer working with d3 at Splunk, just wanted to say thanks for the cool framework. I love the "data", "enter", and "exit" calls, it's a really great way of thinking about data binding.
I'd like to try to incorporate it into something other than svg/canvas visualizations too, maybe just a normal web app or something, do you know of people using it like that?
Thanks, again!
- osi 14y agoIt works great to build tables and tree's of div tags. Its node manipulation aspect is awesome.
- mbostock 14y agoThanks! Yeah, you can definitely use D3 outside of data visualization; the data-join pattern is useful whenever you want to generate a DOM from data and keep the DOM up-to-date as data changes. D3 also provides custom event dispatching for loosely-coupled components: https://github.com/mbostock/d3/wiki/Internals#wiki-d3_dispatch https://github.com/mbostock/d3/wiki/Internals#wiki-d3_dispat... That said, there are higher-level abstractions (e.g., Backbone and Ember) that are explicitly designed for this purpose, and provide useful ways of structuring big applications into separable components. Depending on the size of the application you're trying to build, you might find those useful as well, perhaps in addition to D3.