Documentation ¶
Index ¶
- Variables
- func Build(start, end int64, data map[int64]int, color string) ([]byte, error)
- func CurrYear(data map[int64]int, color string) ([]byte, error)
- func Do(counts map[string]int) ([]byte, error)
- func PastYear(data map[int64]int, color string) ([]byte, error)
- type CalendarHeatmap
- type CalendarHeatmapConfig
- type Date
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Yellow = []string{"#FDF3B7", "#F5C670", "#EC7C46", "#C9312B", "#751428"} Green = []string{"#EBEDF0", "#9BE9A8", "#40C463", "#30A14E", "#216E39"} Blue = []string{"#E9F0F9", "#B7D1E5", "#6CA1CC", "#3568AB", "#152F67"} )
0.15 0.35 0.55 0.75 0.94
Functions ¶
Types ¶
type CalendarHeatmap ¶ added in v0.5.0
type CalendarHeatmap struct {
Config *CalendarHeatmapConfig
}
func New ¶ added in v0.5.0
func New(config *CalendarHeatmapConfig) *CalendarHeatmap
type CalendarHeatmapConfig ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.