D3 force layout with WebAssembly!
This example shows the classic Les Misérables character co-occurrence graph rendered as an animated force-directed network. It demonstrates `d3-wasm-force`, a drop-in replacement for `d3.forceSimulation` that runs the physics calculations in WebAssembly for improved performance. The visualization uses SVG circles and lines to represent characters and their relationships, with colors encoding group membership. The simulation ticks on an interval and supports drag interactions on nodes.
AI-generated descriptionThis block demonstrates d3-wasm-force, a partial re-implementation of d3-force using WebAssembly.
This demo is based on Mike Bostock's force-directed graph that shows character co-occurence in Les Misérables, where d3-wasm-force is almost a drop-in replacement.
Built with blockbuilder.org