Versions in this module Expand all Collapse all v0 v0.1.0 Aug 10, 2026 Changes in this version + const DefaultTerminalHeight + const DefaultTerminalWidth + const MaxInputBytes + const MinTerminalHeight + const MinTerminalWidth + const SchemaURL + const SpecVersion + func DemoNames() []string + func SchemaJSON() []byte + type AxisSpec struct + DataKey string + Kind string + type Chart struct + func New(spec Spec) (*Chart, error) + func (chart *Chart) PNG(options ImageOptions) ([]byte, error) + func (chart *Chart) ResolvedSpec() Spec + func (chart *Chart) Spec() Spec + func (chart *Chart) Terminal(options TerminalOptions) (string, error) + func (chart *Chart) WriteHTML(writer io.Writer, options HTMLOptions) error + func (chart *Chart) WriteJSON(writer io.Writer) error + func (chart *Chart) WritePNG(writer io.Writer, options ImageOptions) error + func (chart *Chart) WriteSVG(writer io.Writer, options ImageOptions) error + type Curve string + const Linear + const Smooth + type Dataset struct + Columns []string + Rows []Row + func ParseDataset(reader io.Reader) (Dataset, error) + type DisplaySpec struct + Show bool + type HTMLOptions struct + Height int + Width int + type ImageOptions struct + Height int + Width int + type Layout string + const Grouped + const Normalized + const Overlay + const Stacked + type Mark string + const MarkBar + const MarkLine + type Orientation string + const Horizontal + const Vertical + type Row map[string]any + type SeriesSpec struct + Color string + DataKey string + Label string + Mark Mark + type Spec struct + Axes *DisplaySpec + Bins int + Curve Curve + Data []Row + Description string + Footer string + Labels *DisplaySpec + Layout Layout + Legend *DisplaySpec + Max float64 + Orientation Orientation + Schema string + Series []SeriesSpec + Theme string + Title string + Type Type + Version int + XAxis AxisSpec + func Demo(name string) (Spec, error) + func ParseSpec(reader io.Reader) (Spec, error) + func SpecFromDataset(dataset Dataset, chartType Type, xKey string, seriesKeys []string) (Spec, error) + type TerminalOptions struct + Height int + Width int + type TerminalSizeError struct + Height int + Width int + func (err *TerminalSizeError) Error() string + type Type string + const Area + const Bar + const Combo + const Donut + const Funnel + const Heatmap + const Histogram + const Line + const Pie + const Radar + const Scatter + func Types() []Type