Versions in this module Expand all Collapse all v0 v0.3.0 Aug 18, 2026 Changes in this version + const QRThumbClass type Chart + Peak int64 type Tick + BoxH int + BoxW int + BoxY int + LabelY int v0.2.0 Aug 6, 2026 Changes in this version + const GeoUnavailable + const MailValueLimit + type DimensionSlice struct + Count int64 + Name string + type Donut struct + Empty bool + Segments []DonutSegment + Size int + Total int64 + func DonutChart(items []DimensionSlice, total int64, size int) Donut + type DonutSegment struct + Class string + Label string + Path string + Share int + Value int64 + type MapBand struct + Class string + Upper int64 + type MapShape struct + Class string + Path string + Title string type Renderer + func (r *Renderer) MailTemplates() []string + func (r *Renderer) RenderMail(name string, data map[string]string) (subject, body string, err error) + type WorldMap struct + Caveat string + Countries int + FillRule string + Legend []MapBand + Max int64 + Metric string + MetricLabel string + Shapes []MapShape + Unavailable string + Unmapped []string + ViewBox string + func Choropleth(values map[string]int64, metric, caveat string, available bool) WorldMap v0.1.0 Jul 31, 2026 Changes in this version + const StylesheetPath + type Bar struct + Bots int64 + Clicks int64 + Day string + H int + Visitors int64 + W int + X int + Y int + type Chart struct + Bars []Bar + First string + H int + Last string + MaxY int64 + PlotH int + Ticks []Tick + W int + func BarChart(points []DayCount, w, h int) Chart + type DayCount struct + Bots int64 + Clicks int64 + Day string + Visitors int64 + type Renderer struct + func New() (*Renderer, error) + func (r *Renderer) AssetURL(name string) string + func (r *Renderer) MissingAssets() []string + func (r *Renderer) Pages() []string + func (r *Renderer) Render(w http.ResponseWriter, status int, page string, data any) error + func (r *Renderer) RenderPartial(w http.ResponseWriter, status int, page, block string, data any) error + func (r *Renderer) StaticHandler(prefix string) http.Handler + type Tick struct + Label string + Y int