visjs-community / visjs-network

the network module from vis.js
Apache License 2.0
60 stars 21 forks source link

Feature request - allow DataSet to be used on the backend #90

Open bartbutenaers opened 2 years ago

bartbutenaers commented 2 years ago

Hi everybody,

We would like to use a DataSet instance on our NodeJs backend, to achieve something like this:

  1. Data (edges, nodes, ...) arrives in our NodeJs backend.
  2. We would like to store that data in a DataSet instance on the NodeJs backend.
  3. Then that data is send to the frontend.
  4. In the frontend the same data is also stored in a DataSet instance and visualized.

Reason is that we need a full copy of the DataSet on the backend side. And if we could use your DataSet implementation, we are sure that it behaves exactly the same on backend and frontend...

But when we use it like this in NodeJs:

const visNetwork = require("vis-network");

Then we only see this functionality: image

So we were wondering whether it is possible to make the DataSet available for developers?

Thanks a lot!! Bart