oneshotlm
Compare all models on this prompt →

Force-directed graph · qwen3-coder-flash

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 · 4 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

I'll create an interactive force-directed graph using D3.js with draggable nodes, hover highlighting, and zoom/pan functionality. Let me build this as a single HTML file.

write index.html (10593 bytes)
toolResult

Successfully wrote 10593 bytes to index.html

assistant

I've created an interactive force-directed graph with the following features: 1. **40 nodes** organized into several clusters (8 groups) 2. **Draggable nodes** - you can move nodes around with your mouse 3. **Hover highlighting** - when hovering over a node: - The node turns red - Connected links become red - Neighboring nodes also turn red 4. **Zoom and pan** - use mouse wheel to zoom, click and drag to pan 5. **Responsive design** - adjusts to window size changes 6. **Tooltips** - shows node information on hover 7. **Visual grouping** - different colors for different clusters The graph uses D3.js for the force-directed layout algorithm and includes realistic physics simulation with attraction/repulsion forces between nodes. To interact with the graph: - Click and drag nodes to reposition them - Hover over any node to see its neighbors highlighted - Use mouse wheel to zoom in/out - Click and drag the background to pan around The implementation is contained in a single HTML file with all CSS and JavaScript included inline as requested.

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

EVALUATION

3/5 partial

Force-directed graph with clusters renders and drag/click pan work, but wheel zoom breaks layout drastically and clusters look sparse.

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.9%
on drag2.7%
on wheel1.8%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread8.4 / 255
console errors0
js errors none

METRICS

runtime40.3s
tokens in5.5k
tokens out3.2k
cached1.0k
cost / run$0.0043