diff --git a/docs/design-guidelines.md b/docs/design-guidelines.md index 89f1da8e..67acd95d 100644 --- a/docs/design-guidelines.md +++ b/docs/design-guidelines.md @@ -50,7 +50,7 @@ Cap rows at what fits: up to 7 rows per card. Stats splits commits into lifetime | Donut centre | `(250, 110)` | | Outer radius | 55 | | Inner radius | 30 | -| Top-N entries shown | 5 (overflow collapses into "Other") | +| Top-N entries shown | 7 (overflow collapses into "Other") | | Slice stroke | `theme.Background`, 1.5 px (gap between slices) | | Legend origin | `(20, 55)` | | Legend row height | 20 px | diff --git a/internal/card/donut_chart.go b/internal/card/donut_chart.go index 0c2aaa9d..3aad4365 100644 --- a/internal/card/donut_chart.go +++ b/internal/card/donut_chart.go @@ -16,7 +16,7 @@ func renderDonutCard(title string, stats []github.LangStat, t theme.Theme) []byt const ( width = 340 height = 200 - topN = 5 + topN = 7 cx = 250 // donut centre x cy = 110 // donut centre y outerR = 55.0 // donut outer radius