chap-links-library

Multiple node selection in vis.js

a 夏天 提交于 2019-12-10 10:10:14
问题 I'm playing with vis.js because I like its Network Visualization module. I'd like to know, as I can't find it in documentation, if it's possibile to select multiple nodes. Cheers, Riccardo 回答1: Search for "selectable" property in documentation at http://visjs.org/docs/network/ If true, nodes in the network can be selected by clicking them. Long press can be used to select multiple nodes. 回答2: Update! the link for the documentation is http://visjs.org/docs/network/interaction.html set the

How to set the image size in Vis.js network graph

冷暖自知 提交于 2019-12-07 15:57:32
问题 I am building a network graph using vis.js The problem is, how do I make all the images the same size ? (see live example here --> comparison of wordpress & drupal) here's the graph code: var nodes = []; nodes.push({ id: 7, shape: 'image', image: '/static/windows8_icons/PNG/Industry/circuit/circuit-26.png', label: 'sharepoint', widthMin: 20, widthMax: 20 }); edges.push({ from: 1, to: 7, length: 100 }); var data = { nodes: nodes, edges: edges }; var options = { smoothCurves: false, stabilize:

How to set the image size in Vis.js network graph

血红的双手。 提交于 2019-12-06 04:07:27
I am building a network graph using vis.js The problem is, how do I make all the images the same size ? (see live example here --> comparison of wordpress & drupal ) here's the graph code: var nodes = []; nodes.push({ id: 7, shape: 'image', image: '/static/windows8_icons/PNG/Industry/circuit/circuit-26.png', label: 'sharepoint', widthMin: 20, widthMax: 20 }); edges.push({ from: 1, to: 7, length: 100 }); var data = { nodes: nodes, edges: edges }; var options = { smoothCurves: false, stabilize: false, nodes: { shape: 'image', radius: 24, fontSize: 18, widthMin: 20, widthMax: 20 }, edges: { width

Multiple node selection in vis.js

旧城冷巷雨未停 提交于 2019-12-05 20:38:29
I'm playing with vis.js because I like its Network Visualization module. I'd like to know, as I can't find it in documentation, if it's possibile to select multiple nodes. Cheers, Riccardo Scott Search for "selectable" property in documentation at http://visjs.org/docs/network/ If true, nodes in the network can be selected by clicking them. Long press can be used to select multiple nodes. Update! the link for the documentation is http://visjs.org/docs/network/interaction.html set the multiselect property to true. add this section to your network option object. interaction: { multiselect: true}

Set Zoom Level in Vis.js

送分小仙女□ 提交于 2019-12-04 22:17:42
问题 I have a network that I'm building with vis.js, but it is too large width-wise to fit in the pages' container. The network runs left to right and contains steps about a specific process. As a person completes tasks, a server feeds new JSON records to update the colors. I can't change the container size due to the layout. When the network loads, it causes the font to be incredibly small and unreadable. Is there a way I could set the zoom level as an option so that only the current step in the