summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-27 21:51:53 +0300
committerPaul Buetow <paul@buetow.org>2026-05-27 21:51:53 +0300
commit0f051cc7feb77dc0bc579ed5575f7d397ba6534d (patch)
tree512dabc3a211aa76a72c4c834d26488ecdfa4cd3
parentc5c14267fe4f991654251437ed8523a43067f8ac (diff)
showcase: add subtitle note explaining grey lines are inactive projects
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--internal/showcase/rank_history_svg.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/showcase/rank_history_svg.go b/internal/showcase/rank_history_svg.go
index a761f7f..7a0386d 100644
--- a/internal/showcase/rank_history_svg.go
+++ b/internal/showcase/rank_history_svg.go
@@ -384,11 +384,15 @@ svg{background:#1a1a2e;font-family:monospace}
svg.WriteString(`<rect width="100%" height="100%" fill="#1a1a2e"/>`)
svg.WriteString(`<g id="chart">`)
- // Title + subtitle.
+ // Title + two subtitle lines.
fmt.Fprintf(&svg, `<text class="title" x="%d" y="28" text-anchor="middle">Project Rank History</text>`, svgViewWidth/2)
fmt.Fprintf(&svg,
`<text class="sub" x="%d" y="44" text-anchor="middle">rank 1 = highest score · hover a line or legend entry to highlight · %d projects tracked</text>`,
svgViewWidth/2, len(allProjects))
+ // Second subtitle: explain the grey lines so readers know what they mean.
+ fmt.Fprintf(&svg,
+ `<text class="sub" x="%d" y="57" text-anchor="middle">grey lines = inactive projects (no meaningful commits in 1+ years) · hover legend entry to highlight</text>`,
+ svgViewWidth/2)
// Rotated Y-axis label.
cx := float64(svgMarginLeft) - 40