
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
vue-d3-network
Advanced tools
Vue component to graph networks using d3-force
npm install vue-d3-network --save
...
<d3-network :net-nodes="nodes" :net-links="links" :options="options" />
...
import D3Network from 'vue-d3-network'
...
components: {
D3Network
},
....
<style src="vue-d3-network/dist/vue-d3-network.css"></style>
Or: import source component from: 'vue-d3-network/src/vue-d3-network.vue' And install devDependencies. (d3-force, stylus and pug) See: package.json)
net-nodes: Array of nodes objects:
net-links: Array of links objects:
selection : Object, links and nodes selected
nodeSym: String, node sprite svg doc
nodeCb: Function(node) -> node, node formatter
linkCb: Function(link) -> link, node link formatter
simCb: Function(sim) -> sim, d3 simulation formatter
customForces: Object: { [d3Function]:args }
options:
canvas: Boolean, render as canvas, false = svg
size: Object, graph size. Default: container size
offset: Object, graph center offset
force: Number
forces Object:
nodeSize: Number, node radius | size in px
linkWidth: Number, link thickness in px
canvasStyles: Object
SVG css classes:
To use this css styles in canvas we create 'ghosts' svg elements to pick up values from computed css properties. If you want, you can stylize the canvas elements directly, setting: options.canvasStyles, but these styles will not be applied to the svg graph.
see: src/canvasStyles.js
FAQs
Vue component to graph networks using d3-force
We found that vue-d3-network demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.