oneshotlm
Compare all models on this prompt →

Force-directed graph · nova-lite-v1

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

<thinking>To create an interactive force-directed graph with the requested features, I need to: 1. Define the nodes and links for the graph. 2. Use the d3 library to create the graph, including: - Force layout for positioning nodes. - Drag functionality for draggable nodes. - Zoom and pan capabilities. - Hover highlighting of neighbors. 3. Integrate CSS for styling and JavaScript for interactivity within a single `index.html` file. The `d3.min.js` file is already present in the current directory, so I will use it directly.</thinking> <thinking>The code above creates a single-page web app with a force-directed graph using the provided `d3.min.js`. It includes CSS for styling and JavaScript for interactivity within the `index.html` file.</thinking>

write /tmp/ws/index.html (5672 bytes)
toolResult

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

assistant

The file `index.html` has been successfully created in the current directory with the requested force-directed graph. You can open this file in a web browser to see and 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.

RUN

modelnova-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

EVALUATION

1/5 broken

Only scattered colored dots render, no links/lines visible, JS errors about undefined transform break the graph.

off-prompt

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.7%
on click0.4%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread4.6 / 255
console errors0
js errors
  • Cannot read properties of undefined (reading 'transform')
  • Cannot read properties of undefined (reading 'transform')
  • Cannot read properties of undefined (reading 'transform')
  • Cannot read properties of undefined (reading 'transform')
  • Cannot read properties of undefined (reading 'transform')

METRICS

runtime15.8s
tokens in6.2k
tokens out2.5k
cached0
cost / run$0.0010