Force-directed graph · gpt-4.1-mini
Output generated Cost / run $0.0051 Runtime 29.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.
I will create a self-contained index.html with inline CSS and JS using d3.min.js (already available) to render an interactive force-directed graph with about 40 nodes clustered, draggable nodes, neighbor highlighting on hover, and zoom/pan. Let's proceed.
index.html (6011 bytes)Successfully wrote 6011 bytes to index.html
The file index.html has been created with an interactive force-directed graph of about 40 nodes in 4 clusters using d3.min.js. It supports draggable nodes, neighbor highlighting on hover, and zoom/pan. Open index.html in a modern browser to see and interact with the graph.