michalgm / ndtv-d3

Interactive Network Graph Visualization for NDTV-generate graphs using D3 animation
http://michalgm.github.io/ndtv-d3
Other
18 stars 2 forks source link

support programmed pan and zoom using the xrange and yrange attributes #20

Open skyebend opened 9 years ago

skyebend commented 9 years ago

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.

michalgm commented 9 years ago

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?

skyebend commented 9 years ago

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

]