mirror of
https://github.com/tiennm99/ghstats.git
synced 2026-05-15 06:58:30 +00:00
cb502f2aa2
- Productive time is now a 24-hour bar chart with axes and nice tick labels instead of a 7x24 heatmap. Model Productive field reshaped from [7][24]int to [24]int. - Language cards render as donut charts with a left-side legend instead of a stacked bar. Slices beyond top-6 collapse into an "Other" row. - Add niceTicks helper (1/2/5 * 10^k ladder, d3-style) for axis ticks. - Legacy language_bar.go removed.
15 lines
423 B
Go
15 lines
423 B
Go
package card
|
|
|
|
import (
|
|
"github.com/tiennm99/ghstats/internal/github"
|
|
"github.com/tiennm99/ghstats/internal/theme"
|
|
)
|
|
|
|
type mostCommitLanguageCard struct{}
|
|
|
|
func (mostCommitLanguageCard) Filename() string { return "2-most-commit-language.svg" }
|
|
|
|
func (mostCommitLanguageCard) SVG(p *github.Profile, t theme.Theme) ([]byte, error) {
|
|
return renderDonutCard("Most Commit Language (last year)", p.CommitsByLanguage, t), nil
|
|
}
|