1
0
mirror of https://github.com/nikolaydubina/calendarheatmap.git synced 2025-02-07 19:40:06 +02:00
2020-07-03 10:36:53 +08:00
2020-07-03 09:47:43 +08:00
2020-07-02 03:00:58 +08:00
2020-07-03 10:12:28 +08:00
2020-07-02 02:30:49 +08:00
2020-07-03 10:03:26 +08:00
2020-07-03 10:03:26 +08:00
2020-07-02 02:30:49 +08:00
2020-07-03 10:12:28 +08:00
2020-07-03 10:36:53 +08:00

Go Report Card GoDev

Self-contained, plain Go implementation of calendar heatmap inspired by Github contribution activity.

Colorscales PuBu9 GnBu9 YlGn9

Without month separator PuBu9_noseparator

Without labels PuBu9_noseparator

Without labels, without separator PuBu9_noseparator

Example:

countByDayOfYear := map[int]int{
    1: 10,
    22: 15,
    150: 22,
    366: 55,
}

img := charts.NewHeatmap(charts.HeatmapConfig{
    Year:               2020,
    CountByDay:         countByDay,
    ColorScale:         colorscales.PuBu9,
    DrawMonthSeparator: true,
    DrawLabels:         true,
    ...
})

You can run it in your Go code or as standalone script. Check full example at examples/main.go and input.txt for more details. Generate examples above with ./generate_examples.sh.

Description
📅 Calendar heatmap inspired by GitHub contribution activity
https://calendarheatmap.io/ Readme MIT 33 MiB
Languages
Go 81.2%
HTML 16%
Makefile 2.8%