Force-directed graph · granite-4.1-8b
Output generated Cost / run $0.0004 Runtime 15.3s
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.
index.html (4557 bytes)Successfully wrote 4557 bytes to index.html
The single‑page web app has been created as **`index.html`** in the current directory. It contains an interactive D3 force‑directed graph with roughly 40 nodes organized into clusters, draggable nodes, hover‑highlighted neighbors, and zoom/pan functionality—all built using the pre‑provided `d3.min.js`. No external resources are used. You can open `index.html` in a browser to see the graph.