Create daily pie chart image.
A Go program that creates pie chart images.
- Go 1.17+
- Download Koruri-Regular.ttf.
- Place
Koruri-Regular.ttfin the project root (same directory asmain.go).
If it is missing, you may see:
open Koruri-Regular.ttf: no such file or directory
# Build
go build -o timetable .
# Run with default size (400×400)
./timetable
# Run with custom size
./timetable -w 600 -h 600The output file image.png will be created in the current directory.
| Flag | Default | Description |
|---|---|---|
-w |
400 |
Image width (px) |
-h |
400 |
Image height (px) |
Change the implementation plan from self-made to existing. Next repository is kotaoue/pieimg
