oneshotlm
Compare all models on this prompt →

Force-directed graph · qwen3.5-27b

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.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

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.

assistant
thinking
The user wants me to create a single-page web app with an interactive force-directed graph using D3.js. The requirements are:
1. Single self-contained index.html file (CSS in <style>, JS in <script>)
2. No external resources/CDNs - use the pre-provided d3.min.js
3. About 40 nodes in several clusters
4. Draggable nodes
5. Hover highlighting of neighbors
6. Zoom/pan functionality
7. Sample data defined inline

Let me create this file with all the required features.
write /tmp/ws/index.html (12444 bytes)
toolResult

Successfully wrote 12444 bytes to /tmp/ws/index.html

assistant
thinking
The file has been created successfully. Let me verify it exists and show a summary of what was built.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 12446 Aug 1 20:02 /tmp/ws/index.html

assistant
thinking
The file is created successfully. Let me provide a summary of what was built.

Created `index.html` with an interactive force-directed graph featuring: **Features:** - **40 nodes** across 5 clusters (Engineering, Design, Product, Marketing, Sales) - **Draggable nodes** - click and drag to reposition - **Hover highlighting** - neighbors and connections light up on hover - **Zoom/pan** - scroll to zoom, drag background to pan - **Collision detection** - nodes don't overlap - **Cluster forces** - keeps related nodes grouped together **Visual design:** - Dark gradient background - Color-coded clusters with legend - Glassmorphism control panels - Smooth transitions and animations The app loads `d3.min.js` from the current directory and runs fully sandboxed with no external dependencies.

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

modelqwen3.5-27b
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Force-directed graph with colored clusters, working drag and zoom/pan; keyboard input has no effect as expected.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion2.2%
on click0.0%
on drag9.2%
on wheel7.6%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread21 / 255
console errors0
js errors none

METRICS

runtime48.3s
tokens in12k
tokens out3.8k
cached0
cost / run$0.0084