Repository navigation
Backlog
Description
Priority
medium. The chart module of the backend (app/nullius/charts.py) that Compare's Chart view draws from.
Components
- app/nullius (backend)
- app/web (routes)
- templates and static files
- docs and the site
- catalogue (benchmarks, agents, capabilities)
- the standard (ports, kits, relay, runs)
- CI, workflows and skills
Evidence
Compare, Chart view, on main. Charts drawn with crafted values and on the preview's runs, at 1280 and 390 px:
- Scatter y labels run off the left edge. A y tick of 7 characters or more (
$0.0040,$0.0080) ends at x = 44 and starts before x = 0. The left margin is fixed:_S_LEFT = 48(app/nullius/charts.py, line 228), labels drawn atleft - 4(line 260). - Tags of close points overlap. Two scatter points close together but not equal (0.51/0.515 and 0.51/0.495): tags 3 and 4 overlap. When no side is free, the tag takes the first side inside the plot, not the least crowded one (line 283). Points at the same place get ring tags and are fine.
- A tick label is dropped. Output tokens as dots: the gridline at 100k has no label (
75.0k, then nothing, then125.0k). A label that would touch the one before it is left out (lines 160-172), so a gridline reads as unlabelled. - A reading runs past the panel. A dots reading of 9 characters (
1234/2000) ends at x = 363 on a 360 px panel (_RIGHT, line 31; lines 222-224). - The first x label is off its gridline. On a scatter, the first x label is anchored at its start (line 166), and the plot is inset by 12 px, so
0sits to the right of its gridline.
Screenshot
Reproduction
- Compare two or more runs, Chart view.
- Scatter with a cost axis whose steps are below a cent; scatter with two points close together; dots of output tokens; dots of a row with a long reading.
Expected
Every label inside the chart's panel, beside its own gridline or point, none overlapping another, none silently dropped.
Acceptance
- The scatter's left margin fits its longest y label.
- Tags of close points do not overlap.
- Every gridline keeps its label: fewer ticks when the labels are wide, rather than one dropped.
- A reading never passes the panel's right edge.
- Each x label is centred on its gridline when there is room.
- A test per rule, on the chart's geometry.
Dependencies and related
#390 fixes axis ranges and tick formats; this is where labels sit. The chart view came with #218.
Activity