Skip to content

kotaoue/timetable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timetable

Create daily pie chart image.

A Go program that creates pie chart images.

Sample Output

timetable sample

Requirements

  • Go 1.17+

Prerequisites

  1. Download Koruri-Regular.ttf.
  2. Place Koruri-Regular.ttf in the project root (same directory as main.go).

If it is missing, you may see:

open Koruri-Regular.ttf: no such file or directory

Usage

# Build
go build -o timetable .

# Run with default size (400×400)
./timetable

# Run with custom size
./timetable -w 600 -h 600

The output file image.png will be created in the current directory.

Flags

Flag Default Description
-w 400 Image width (px)
-h 400 Image height (px)

Next

Change the implementation plan from self-made to existing. Next repository is kotaoue/pieimg

References

About

Create daily pie chart image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages