Force-directed graph · qwen-2.5-7b-instruct
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.
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.
/tmp/ws/index.html (7439 bytes)Successfully wrote 7439 bytes to /tmp/ws/index.html
The single-page web app with an interactive force-directed graph has been successfully created and saved as `index.html` in the current directory. You can open this file in a web browser to interact with the graph.
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.