oneshotlm
Compare all models on this prompt →

Force-directed graph · qwen3-coder-next

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 · 8 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
bash {"command":"ls -la /tmp/ws"}
toolResult

total 276 drwxr-sr-x. 2 node node 23 Aug 1 20:02 . drwxrwsrwx. 3 root node 16 Aug 1 20:02 .. -rw-r--r--. 1 node node 279706 Aug 1 20:02 d3.min.js

assistant
write /tmp/ws/index.html (19198 bytes)
toolResult

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

assistant
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 19208 Aug 1 20:03 /tmp/ws/index.html

assistant

Done! I've created a complete interactive force-directed graph in `/tmp/ws/index.html` with: **Features:** - **40 nodes** organized into 6 distinct clusters (core, center, edge, outer, periphery, remote) - **Draggable nodes** with physics-based simulation - **Hover highlighting** - hovering over a node highlights its direct neighbors and connecting links - **Click emphasis** - clicking a node emphasizes it and its connections - **Zoom/pan** - scroll to zoom, drag background to pan, click "Reset View" to restore - **Cluster visualization** - 6 colors for 6 different node groups - **Cluster labels** showing the different groups **Technical details:** - Uses only the provided `d3.min.js` (no external dependencies) - All CSS, JS, and HTML are inline in a single file - Fully self-contained with no network requests - Responsive SVG with proper zoom behavior - Interactive node styling with transitions - Physics-based force simulation with links, charge, center, and collision forces

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-coder-next
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 partial

Force-directed graph with clusters renders; drag and wheel zoom/pan work, but nodes appear sparse/oddly initialized, 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 motion0.0%
on click0.0%
on drag1.9%
on wheel2.7%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread12.5 / 255
console errors0
js errors none

METRICS

runtime68.5s
tokens in5.5k
tokens out5.8k
cached13k
cost / run$0.0062