Force-directed graph · gpt-3.5-turbo
Output generated Cost / run $0.0044 Runtime 13.5s
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 (3786 bytes)Successfully wrote 3786 bytes to index.html
The interactive force-directed graph has been rendered using d3.min.js. You can view the graph by opening the index.html file in a browser.