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:23:17 +08:00 committed by GitHub
parent ec3029ff41
commit 4cee5a2bc9
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, save output in formats supported by `image` module (PNG, JPEG, GIF).
Example module, next save output in formats supported by `image` module (PNG, JPEG, GIF).
```go
countByDayOfYear := map[int]int{
@ -43,9 +43,21 @@ img := charts.NewHeatmap(charts.HeatmapConfig{
```
Example script, output as PNG.
Example script, will output as PNG.
```
go run main.go -h
$ go build; ./calendarheatmap -h
Usage of ./calendarheatmap:
-colorscale string
refer to colorscales for examples (default "PuBu9")
-input string
file should contain lines in format: 2020-05-16 20:43 PPPP (default "input.txt")
-labels
labels for weekday and months (default true)
-monthsep
render month separator (default true)
-output string
output filename, will export as PNG (default "chart.png")
```
TODO: