Re:Introducing d3-scale
by mbostock on Monday December 28, 2015 @06:11PM
(#10804020)
Ordinal scales don’t have a continuous input domain, so you can’t plug them into the zoom behavior like a linear scale. You could have the zoom behavior transform the scale’s output range instead (or equivalently, use the zoom behavior to apply a transform to the SVG). Can you elaborate on when you would want to do this? It might make a good example.
[ Parent
| on HN ]
Re:Introducing d3-scale
by infinite8s on Tuesday December 29, 2015 @11:44AM
(#10807499)
Not the original questioner, but you can imagine trying to implement something like a TableLens in D3 (https://www.cs.ubc.ca/~tmm/courses/cpsc533c-04-fall/readings...), and zooming in the ordinal row axis just acts as a window onto a subset of the data.