[Vuejs]-How to I add vis.js to Vue.js

0👍

import Viz from 'viz.js';
import workerURL from 'file-loader!viz.js/full.render.js';
var viz = new Viz({ workerURL });

viz.renderSVGElement('digraph { a -> b; }')
.then(function (element) {
  document.body.appendChild(element);
});

Reference: https://github.com/mdaines/viz.js/issues/160

0👍

These packages might help, their aim is to adopt Vis to Vue:

  1. https://github.com/r3code/vue-vis-network
  2. https://github.com/alexcode/vue2vis

Leave a comment