-
Thomas SchlesingerJune 29, 2016 at 7:46 am #6274
Im playing around with the awesome weighted tree. http://vizuly.io/product/weighted-tree/?demo=d3js
Is it possible to implement a zoom and move around function?
As it is here in this example? http://bl.ocks.org/robschmuecker/7880033The question is: How complicated would this be?
vizulyJune 29, 2016 at 9:13 am #6277Hi Thomas,
Yes, this is possible, and not too terribly complicated.
You would want to use the d3 zoom behavior (https://github.com/d3/d3-3.x-api-reference/blob/master/Zoom-Behavior.md)
I would recommend attaching the
zoom
call to the background element (so it picks up all the mouse events) and then on theonZoom
event translating theg
element in theweightedtree.update()
function.I have built in similar functionality for other clients with custom components.
– Tom
SohailOctober 19, 2016 at 10:01 am #6523Hi,
I was wondering if i can redesign your visual in some other application, can you share me the github link where i can see the code. Thank you!
Regards
SohailvizulyOctober 19, 2016 at 10:04 am #6524Hello Sohail,
You are welcome to incorporate any of our open source components per the flexible MIT license.
In order to get the source code you need to provide your email address via the download link on the given component and a link will be sent to you via email. The code is not hosted on GitHub.
Thanks,
Tom
-
|
You must be logged in to reply to this topic.