diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 10:00:04 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 10:00:04 +0300 |
| commit | 027bfd08e367ce520acfccf1b452687fb4bfdabb (patch) | |
| tree | fece10a3844b14d181afe0c25f2f3f1d04e2b622 /internal/showcase/language_detector.go | |
| parent | bb0446ab03b6e16a3082ef2c4a9222613ef8dc90 (diff) | |
feat(showcase/svg): add legend panel, fix tooltip overlap, fill browser window
- 3-column legend panel to the right of the plot; each colored square is
labelled with the project name (truncated at 12 chars); hovering a
legend entry highlights the corresponding line and opens the same
tooltip as hovering the line directly
- Fix tooltip title/body overlap: body rows now start at y=32 (below the
title baseline at y=18) so project name and rank rows never collide
- Tooltip width adapts to the project name length (160–300 px)
- SVG uses width/height='100%' + preserveAspectRatio='xMidYMid meet'
so Firefox fills the browser window while keeping the aspect ratio
- Add truncateName and xmlEscape helpers for safe legend text rendering
- allLG (legend groups) dimmed/restored in onEnter/onLeave alongside allPG
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/showcase/language_detector.go')
0 files changed, 0 insertions, 0 deletions
