HP Mentions per Book Force Layout
This example visualizes spell mentions in the Harry Potter series, clustered by book. A force-directed layout groups circles into seven clusters, one per book, using `d3.forceSimulation`, `d3.forceCluster`, and `d3.forceCollide`. Each circle represents a spell mention from a JSON dataset, with color encoding the book number. Hovering a circle triggers a tooltip via `d3-tip`, displaying the specific spell name and book. The SVG rendering uses D3 v4 within a React framework.
AI-generated descriptionforked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1804919'>Multi-Foci Force Layout</a>
forked from <a href='http://bl.ocks.org/lgodz15/'>lgodz15</a>'s block: <a href='http://bl.ocks.org/lgodz15/3e77681bddb788d52f391819cfdf51b7'>HP Mentions per Book Force Layout</a>