Versions in this module Expand all Collapse all v1 v1.0.0 Feb 15, 2022 v0 v0.1.0 Jan 26, 2022 Changes in this version + func Fprint(w io.Writer, p BarChart, s ScaleFunc) error + func Fprintf(w io.Writer, p BarChart, width int, s ScaleFunc, x, y FormatFunc) error + type BarChart struct + MaxX int + MaxY int + MinX int + MinY int + func BarChartXYs(xys [][2]int) BarChart + func (p *BarChart) Add(x, y int) + func (p *BarChart) ScaleXYs(xWidth int, s ScaleFunc) []XYf + func (p *BarChart) XYs() []*XY + type FormatFunc func(v float64) string + type ScaleFunc func(min, max, value float64) float64 + func Linear(width int) ScaleFunc + type XY struct + X int + Y int + type XYf struct + ScaledY *float64 + X float64 + Y *float64