Versions in this module Expand all Collapse all v0 v0.1.0 Oct 19, 2026 Changes in this version + const MaxSide + func Compact(v float64) string + func Downsample(vals []float64, n int) []float64 + func DrawLegend(g *Grid, x, y int, items []LegendItem, m Mode) int + func LegendWidth(items []LegendItem) int + func Percent(f float64) string + type Bar struct + Axis bool + Format func(float64) string + Guide bool + Horizontal bool + Labels []string + Max float64 + Min float64 + Role Role + Roles []Role + Values []float64 + func (b Bar) Draw(w, h int, m Mode) *Grid + type Cell struct + Bg Role + Bold bool + Role Role + Text string + Width uint8 + type Gauge struct + Label string + Max float64 + Role Role + Style GaugeStyle + Value float64 + func (gg Gauge) Draw(w, h int, m Mode) *Grid + func (gg Gauge) Fraction() float64 + type GaugeStyle uint8 + const GaugeBlocks + const GaugeLine + type Grid struct + Cells []Cell + H int + W int + func NewGrid(w, h int) *Grid + func (g *Grid) At(x, y int) Cell + func (g *Grid) String() string + func (g *Grid) Text(x, y int, s string, role Role, bold bool) int + func (g *Grid) TextRight(right, y int, s string, role Role, bold bool) + type Heatmap struct + ColLabels []string + Format func(float64) string + Max float64 + Min float64 + RowLabels []string + Values [][]float64 + func (hm Heatmap) Draw(w, h int, m Mode) *Grid + type Histogram struct + Bins int + Format func(float64) string + Role Role + Values []float64 + func (hg Histogram) Counts(bins int) (counts []float64, lo, hi float64) + func (hg Histogram) Draw(w, h int, m Mode) *Grid + type LegendItem struct + Label string + Role Role + type Line struct + Axis bool + Fill bool + Format func(float64) string + Labels []string + Max float64 + Min float64 + Series []Series + func (l Line) Draw(w, h int, m Mode) *Grid + func (l Line) Legend() []LegendItem + type Mode uint8 + const ASCII + const Blocks + const Braille + func (m Mode) String() string + type Pie struct + Aspect float64 + Donut bool + Labels []string + Roles []Role + Values []float64 + func (p Pie) Draw(w, h int, m Mode) *Grid + func (p Pie) Legend() []LegendItem + type Role string + const Accent + const AccentBright + const Dim + const Edge + const Error + const Fg + const Heat1 + const Heat2 + const Heat3 + const Heat4 + const Heat5 + const Info + const Mute + const None + const Series1 + const Series2 + const Series3 + const Series4 + const Series5 + const Series6 + const Success + const Track + const Warning + func SeriesRole(i int) Role + type Series struct + Name string + Role Role + Values []float64 + type Sparkline struct + Max float64 + Min float64 + Role Role + Values []float64 + func (s Sparkline) Draw(w, h int, m Mode) *Grid