oneshotlm
Compare all models on this prompt →

Force-directed graph · seed-2-1-turbo

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
I will create a D3.js interactive force-directed graph with specified features.
write /tmp/ws/index.html (7521 bytes)
toolResult

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

assistant
thinking
File write succeeded, will verify contents.
bash {"command":"ls -la /tmp/ws/index.html /tmp/ws/d3.min.js 2>&1 | head -5"}
toolResult

-rw-r--r--. 1 node node 279706 Aug 13 01:26 /tmp/ws/d3.min.js -rw-r--r--. 1 node node 7525 Aug 13 01:27 /tmp/ws/index.html

assistant
thinking
File is created, next I'll verify its validity.

Created `index.html` with: - **40 nodes** across 5 color-coded clusters (Alpha, Beta, Gamma, Delta, Epsilon) - **Force simulation** with link, charge, collision, center, and custom cluster forces - **Draggable nodes** with d3.drag (restarts simulation on drag) - **Hover highlighting** — dims non-neighbors and highlights connected nodes/links - **Zoom/pan** with d3.zoom (0.2× to 5× scale) - Dark theme, node labels on hover, responsive resize Loads `d3.min.js` from the local file — no external resources.

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

modelseed-2-1-turbo
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

EVALUATION

3/5 working

Force-directed clustered graph renders with nodes drifting; drag/click/wheel cause slight movement, but only ~40 nodes visible and appears cropped/zoomed oddly.

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 motion3.5%
on click1.8%
on drag3.7%
on wheel2.4%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread16.7 / 255
console errors0
js errors none

METRICS

runtime46.7s
tokens in11k
tokens out3.1k
cached7.1k
cost / run$0.0099