Hi William,
I searched through a visjs network diagrams and they have the display as expected. Like i would like to keep an image for nodes instead of the circular figures. it is possible in visjs.
But here minor changes in neovis.js file in visjs JSON is not reflected. Like i changed and added a few more key-value pairs like repulsion, avoidOverlap,central Gravity, nodeDistance and changed the fontsize,damping,inherit,scalefactor,etc-
visjs: {
interaction: {
click:true,
hover: true,
hoverConnectedEdges: true,
selectConnectedEdges: false,
// multiselect: true,
multiselect: 'alwaysOn',
zoomView: true,
experimental: { }
},
physics: {
barnesHut: {
damping: 10.9,
avoidOverlap: 1,
centralGravity: 0.2
},
repulsion:{
nodeDistance: 1000,
},
},
nodes: {
mass: 4,
shape: 'neo',
labelHighlightBold: false,
widthConstraint: {
maximum: 40
},
heightConstraint: {
maximum: 40
},
image:'Tata-logo.png',
size :90,
font:{color:'#eeeeee', size: 30},
},
edges: {
hoverWidth: 2,
selectionWidth: 0,
smooth: {
type: 'continuous',
roundness: 0.15
},
font: {
size: 1,
strokeWidth: 0,
align: 'top'
},
color: {
inherit: true
},
arrows: {
to: {
enabled: true,
type: 'arrow',
scaleFactor: 0
}
}
}
}
But nothing seems to reflect in the output.
Please help.
It also gives errors in my angular counterpart but nevertheless it still compiles after giving errors like -
[1]
ERROR in ./src/assets/neovis.js 31333:19
Module parse failed: Unexpected token (31333:19)
You may need an appropriate loader to handle this file type.
| * to the next pending observer.
| */
> this.url = url;
[2]
ERROR in ./src/assets/neovis.js 20783:26
Module parse failed: Unexpected token (20783:26)
You may need an appropriate loader to handle this file type.
| encoding = encoding || state.defaultEncoding;
| if (encoding !== state.encoding) {
> chunk = bufferShim.f
Can you also suggest if i can integrate another outside vis.js file for a network diagram and integrate it with our neovis.js file. Because even if i put an external angular vis.js file , the database info remains in neovis.js.
Like here is the JSfiddle for a network diagram that we can integrate with our neovis.js -
Thank you for your time and consideration.