networkD3 icon indicating copy to clipboard operation
networkD3 copied to clipboard

Setting initial zoom of forceNetwork

Open pemorris opened this issue 8 years ago • 4 comments

Thanks for a truly great package,

I was wondering if there was any way of setting the initial zoom of a networkD3 forceNetwork plot? Zooming via the mouse works perfectly, but it would really useful to set a start zoom at the function call.

Regards

pemorris avatar May 25 '16 02:05 pemorris

Agree. linkDistance can be used to increase separation between points, but it is not sufficient as the text size will not change.

MikeBadescu avatar Nov 04 '16 20:11 MikeBadescu

Any updates on this? Maybe there is a way of doing it with the customJS function?

higor-gomes93 avatar Mar 24 '22 18:03 higor-gomes93

Effectively, this package is not being maintained. I believe that I'm the only one really paying attention to issues here and on StackOverflow, and I do not have permission to merge changes. And my interest in providing workaround hacks via htmlwidgets::onRender() is seriously waning. I began work on a successor to this package that tries to replicate most of the functionality of {networkD3} but with substantial improvements to the API and functionality, but it's still in a very alpha state.

cjyetman avatar Mar 24 '22 18:03 cjyetman

Thank you very much, @cjyetman ! This package is really usefull when it comes to interactive network graphs, and I believe it is one of the very few options to everyone who wants to create interactive R visuals in power bi. I'll be watching closely your new package! Looking forward to using it

higor-gomes93 avatar Mar 24 '22 18:03 higor-gomes93