ndtv-d3
ndtv-d3 copied to clipboard
support programmed pan and zoom using the xrange and yrange attributes
someday it would be cool for the user to be able to make the movie pan and zoom by defining how these change over time.
do you mean expose a JS interface to control the panning and zooming, or include panning and zooming info in the data file on a per-slice basis? Or something else?
on a perslice basis, using the the elements that included in the render object to define the range of the network coordinate space that should be mapped to the viewport
"xlim": [
-2.7796,
2.7796
], "ylim": [
-2.9963,
2.9963
]