2020-07-02 03:23:17 +08:00
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/nikolaydubina/calendarheatmap)](https://goreportcard.com/report/github.com/nikolaydubina/calendarheatmap)
|
2020-12-21 16:44:52 +08:00
|
|
|
[![Go Reference](https://pkg.go.dev/badge/github.com/nikolaydubina/calendarheatmap/charts.svg)](https://pkg.go.dev/github.com/nikolaydubina/calendarheatmap/charts)
|
2020-07-03 15:27:49 +08:00
|
|
|
[![codecov](https://codecov.io/gh/nikolaydubina/calendarheatmap/branch/master/graph/badge.svg)](https://codecov.io/gh/nikolaydubina/calendarheatmap)
|
2020-07-04 12:11:30 +08:00
|
|
|
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
|
2020-07-03 10:56:33 +08:00
|
|
|
|
2020-07-02 03:04:05 +08:00
|
|
|
Self-contained, plain Go implementation of calendar heatmap inspired by Github contribution activity.
|
2020-07-02 03:02:51 +08:00
|
|
|
|
2020-07-11 20:56:29 +08:00
|
|
|
```
|
|
|
|
$ go build
|
|
|
|
$ echo '{
|
|
|
|
"2020-05-16": 8,
|
|
|
|
"2020-05-17": 13,
|
|
|
|
"2020-05-18": 5,
|
|
|
|
"2020-05-19": 8,
|
|
|
|
"2020-05-20": 5
|
|
|
|
}' | ./calendarheatmap > chart.png
|
|
|
|
```
|
|
|
|
|
2020-07-03 15:16:42 +08:00
|
|
|
Basic
|
2020-07-11 20:56:29 +08:00
|
|
|
|
2020-07-03 15:16:42 +08:00
|
|
|
![basic](charts/testdata/basic.png)
|
|
|
|
|
2020-07-02 02:48:34 +08:00
|
|
|
Colorscales
|
2020-07-03 15:16:42 +08:00
|
|
|
![col1](charts/testdata/colorscale_1.png)
|
|
|
|
![col2](charts/testdata/colorscale_2.png)
|
2020-07-02 02:48:34 +08:00
|
|
|
|
2020-09-29 20:06:10 +08:00
|
|
|
UTF-8
|
|
|
|
![col1](charts/testdata/korean.png)
|
|
|
|
|
2020-12-07 19:55:29 +08:00
|
|
|
SVG
|
2020-12-07 19:58:04 +08:00
|
|
|
|
2020-12-07 19:55:29 +08:00
|
|
|
![svg](charts/testdata/korean.svg)
|
|
|
|
|
2020-07-02 02:50:20 +08:00
|
|
|
Without month separator
|
2020-07-03 15:16:42 +08:00
|
|
|
![nosep](charts/testdata/noseparator.png)
|
2020-07-02 02:48:34 +08:00
|
|
|
|
2020-07-02 20:07:08 +08:00
|
|
|
Without labels
|
2020-07-03 15:16:42 +08:00
|
|
|
![nolab](charts/testdata/nolabels.png)
|
2020-07-02 20:07:08 +08:00
|
|
|
|
|
|
|
Without labels, without separator
|
2020-07-03 15:16:42 +08:00
|
|
|
![nosep_nolab](charts/testdata/noseparator_nolabels.png)
|
2021-02-16 21:43:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
## GitHub stars over time
|
|
|
|
|
|
|
|
[![GitHub stars over time](https://starchart.cc/nikolaydubina/calendarheatmap.svg)](https://starchart.cc/nikolaydubina/calendarheatmap)
|