Search code examples
vis.js-networkvis.js

Vis.js Gap between Node and its border


Using Vis.js I want to Generate something where in there is a gap between the Circular image and the Node border

Sample: enter image description here

I cannot find anything at the Vis.js documentation for such a modification, can anyone guide me for it?


vis.js GitHub issue report


Solution

  • There's no way to achieve this unfortunelly. The color option only accepts one border and you can't make use of CSS since Vis is built using canvas, not SVG.

    What you can do to achieve this is crop your image in a circular shape with some transparent padding to make the gap. And then vis would add the black border for you.