crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update vis-network to version 6

kovalchuk-vyacheslav opened this issue · comments

Current version of this package uses version 5 of vis-network. However in version 6 there are a lot of improvements which I'm not able to use now.

So can u update this package to version 6?

I have the same request.

why no update to 7? lol

I created a fork and published it to npm with some minor bug fixes and updates in it that I plan on maintaining for my company (which relies on this library). I just updated it to v6.5.2 and everything appears to be working as expected. Upgrading to v7 had some breaking changes so I haven't implemented that one yet. If you want to give it a go, here is the link:
https://github.com/hesto2/react-vis-network-graph

As a side note, this has now been upgraded to v7:
https://github.com/hesto2/react-vis-network-graph

Thank you @hesto2, I'm using your version. I was looking for a bugfix, but it doesn't seem to fix it anyway. Maybe do you know why nodes are not redrawn after graph updates? I have a node of some color under some conditions, then the graph is updated and the node should come back to default color, but it seems redraw is not triggered, even if I explicitly call it on the network instance.

@hesto2 yes I think we are talking about the same problem. I would expect it to work at least forcing redraw, but it doesn't seem to work. If I check nodes in network object I can see color property is no more applied to the node, but the change doesn't reflect on the ui.

commented

Any ideas about version 8 ?

Done, we are now using version 9