November 2017
Beginner to intermediate
298 pages
6h 47m
English
However, D3 implements transitions on selections, and we don't have selections yet. A single D3 selection is an element with bound data. With D3 you select a DOM element, usually SVG, join data to it, and you have a selection with all its wondrous methods: the explicit enter() and exit() methods, the implicit update() method triggered by data(), as well as transition() and their helpers duration() and delay() that control the transition.
To create selections, you just create DOM-like elements, and the great thing is, you don't need the incarnated DOM to do so. You can create them in memory. Here's how:
var customBase = document.createElement('custom')var custom = d3.select(customBase);
You can imagine customBase as a replacement ...
Read now
Unlock full access