D3 is much harder to learn than Raphael, but in both cases you will also need to learn SVG to be able to create better animations. On the other hand, it usually takes less math to visualize D3 than similar examples of processing or Raphael, since there are already many packaged layouts.
I would say that D3 is the best choice for an obvious reason: D3 is based on the current web standards stack (HTML, DOM - even if you hate it, you need to use it, CSS, SVG, even Canvas) and this is a library to work with data. Being a data structure, D3 also comes with:
- tons of algorithms and layouts (power layouts, stack layouts, trees, etc.),
- some basic functions of enumerating data (nesting, cross, group, drives - see the following examples: http://bl.ocks.org/phoebebright/raw/3176159/ ),
- JQuery style selection,
- as well as visualization primitives (d3.svg comes with everything you need for simple graphics).
Thirdly, d3 is not only better than Raphael and Processing in many cases, but also a viable replacement for jQuery, underscore.js and other frameworks. A lot of graphic libraries are built on it, so you can always simply drag and drop a cool diagram and rewrite the data wrapper around it.
Using this interface you can find some good timeline examples: http://biovisualize.github.com/d3visualization/#visualizationType=timeline
paxRoman Mar 05 '13 at 11:20 2013-03-05 11:20
source share