3 ms·
> What are the things that D3 did right to get the acclaim, and why does it keep it for so long? Once upon a time, there was an infovis library for Java called
by jcranmer 7y ago
> What are the things that D3 did right to get the acclaim, and why does it keep it for so long?
Once upon a time, there was an infovis library for Java called Prefuse. Then the developers abandoned that library for a Flash infovis library called Flare. A JS library called Protovis was inspired by Flare, and then Protovis itself was replaced with D3.
I've used 3 of those libraries (never wrote any Flash code). The only one I would actually recommend people use is D3--it's literally the first (honestly, only) infovis toolkit I've used that doesn't feel like pulling teeth to get anything done.
What D3 does differently from its lineage is that it is data-centric. Each datapoint is an object, corresponding to a DOM node, and the layouts in D3 don't actually draw anything; they just set properties on the object--you're responsible for actually converting those into setting SVG properties for display.
It sounds like this would be a nasty headache, but this way is actually much better than the traditional way of handling things (where the visualization is essentially treated as a display widget in a normal GUI toolkit). Any time you want to progress beyond a basic "display a graph with static data," you start to need a lot more fine-grained control over display elements. Want to link multiple displays of the same dataset, so clicking on one in one screen highlights them in all the others? That's very hard in prefuse, but quite easy in D3.
- andybak 7y agoConversely you often seeing D3 recommended for people that just want to draw a bar chart. That's a big learning curve and a steep cognitive overhead if you do just want to do something fairly conventional. Luckily there's now plenty of d3 wrappers to cover common cases.
- lucasverra 7y agoif you have experience, witch 3 would you recommend for business as usual presentations ?
- landtuna 7y agoVega-lite is nice: https://vega.github.io/vega-lite/ https://vega.github.io/vega-lite/