Force-directed graph · nova-2-lite-v1
Output generated Cost / run $0.0152 Runtime 32.0s
Prompt for this run
Using the pre-provided d3.min.js (global d3), render an interactive force-directed graph of about 40 nodes in several clusters with draggable nodes, hover highlighting of neighbors, and zoom/pan. Define the sample nodes and links inline.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
METRICS
Transcript · 4 messages
Using the pre-provided d3.min.js (global d3), render an interactive force-directed graph of about 40 nodes in several clusters with draggable nodes, hover highlighting of neighbors, and zoom/pan. Define the sample nodes and links inline.
thinking
[REDACTED].
index.html (4106 bytes)Successfully wrote 4106 bytes to index.html
thinking
[REDACTED].
✅ Done! `index.html` now contains a fully self‑contained, interactive force‑directed graph using the local **d3.min.js**. Features included: - 40 nodes arranged in 5 clusters - Draggable nodes (click‑and‑drag) - Hover highlighting of a node **and** its immediate neighbors - Zoom & pan (mouse wheel + drag) - No external resources or network requests Open `index.html` in any modern browser to interact with the graph.