Git Product home page Git Product logo

Comments (9)

bthieurmel avatar bthieurmel commented on August 13, 2024

Yes, it's a very good feature request, but with quite a lot of work ! I'll try to find time to tkink about how add this in a next version.

from visnetwork.

FrissAnalytics avatar FrissAnalytics commented on August 13, 2024

thanks! I realized it would be a major request, therefore I built a smaller output binding, without all the nice things you have, which can just do this. Even though it is a lot of work, it would give your package a really nice feature boost I think.

from visnetwork.

bthieurmel avatar bthieurmel commented on August 13, 2024

In progress, first version coming soon...

from visnetwork.

FrissAnalytics avatar FrissAnalytics commented on August 13, 2024

nice! :-)

from visnetwork.

FrissAnalytics avatar FrissAnalytics commented on August 13, 2024

by the way, a cool feature I implemented which is easy to do once you have the proxy object is to use the animation option, see here.

Especially the animated fit and the ability to focus on a given node are useful e.g. to create a guided tour through a network over time.

Also pretty useful is the ability to use different layout endering-engines (other than the force layout and hierarchical layout vis.js offers). For instance, DiagrammeR offers a few, see here.

You just have to scale the coordinates of other layout engines to the coordinates visNetwork uses, which is easy to achieve as in vis.js you can give individual nodes x and y coordinates. A simple scaling to the canvas vis.js uses is enough. igraph obviously is another candidate which offers layout rendering possibilities.

The drawback is that you have to maintain multiple node and edge lists, but practically you would just pass the vis.js nodes and edges, use a transformation function to get inputs for the other network rendering tools, get the new coordinates and apply them to the vis.js instance.

from visnetwork.

bthieurmel avatar bthieurmel commented on August 13, 2024

Now available in dev version on github, visNetwork 0.2.0.

You can use in shiny with visNetworkProxy function and then call visNodes, visEdges, ... all options for update.

I also introduce visFocus & visFit functions (and add more in future I think....!)

Some examples in a shiny apps shiny::runApp(system.file("shiny", package = "visNetwork"))

from visnetwork.

FrissAnalytics avatar FrissAnalytics commented on August 13, 2024

looks nice! thanks for the update, I hope many find it useful :-)

from visnetwork.

bthieurmel avatar bthieurmel commented on August 13, 2024

Just for information about layout :

I've just initialize and push on gitub a new function visIgraphLayout to compute coordinates before rendering. So we can now render the network really quicky, and use all igraph layout such as layout_in_circle, ...

from visnetwork.

FrissAnalytics avatar FrissAnalytics commented on August 13, 2024

I noticed! Nice work, thanks! :-)

from visnetwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.