pf_app
SVG text does not wrap, so labels were cut at twelve characters -- which with the sort prefixes now on every bucket meant "04 - Forecas…" and told you nothing the position of the bar had not already. Word wrapping to the bar's width, three lines at most, with the ×n and untagged markers moved below however many lines the label took and the plot's bottom padding raised to make room. Character width is estimated rather than measured: measuring means a DOM round trip per label on every render, and at this size a digit is about 0.55em, which is close enough for a centred label with a bar's width to play with. A word longer than the line overflows rather than breaking, since half a word helps nobody. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| lib | ||
| public | ||
| routes | ||
| setup_sql | ||
| ui | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| install.sh | ||
| package-lock.json | ||
| package.json | ||
| PERSPECTIVE.md | ||
| pf_perspective_options.md | ||
| pf_spec.md | ||
| pf.sh | ||
| server.js | ||