1
0
mirror of https://github.com/nikolaydubina/calendarheatmap.git synced 2025-01-19 04:48:10 +02:00

Update README.md

This commit is contained in:
Nikolay Dubina 2020-07-04 12:18:57 +08:00 committed by GitHub
parent 7c2b3f7a2f
commit b4ef60d21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ Without labels
Without labels, without separator
![nosep_nolab](charts/testdata/noseparator_nolabels.png)
Example module, you can save output in formatas supported by `image` module (PNG, JPEG, GIF).
Example module, save output in formats supported by `image` module (PNG, JPEG, GIF).
```go
countByDayOfYear := map[int]int{
@ -29,6 +29,7 @@ countByDayOfYear := map[int]int{
22: 15,
150: 22,
366: 55,
...
}
img := charts.NewHeatmap(charts.HeatmapConfig{
@ -39,9 +40,10 @@ img := charts.NewHeatmap(charts.HeatmapConfig{
DrawLabels: true,
...
})
```
Example script, current saves as PNG.
Example script, output as PNG.
```
go run main.go -h
```