Versions in this module Expand all Collapse all v0 v0.2.0 May 27, 2026 Changes in this version + func BandTicks(scale *BandScale) []scene.Tick + func BuildAxis(scale Scale, channel scene.Channel, position scene.AxisPosition, ...) scene.Axis + func BuildAxisWithOpts(scale Scale, channel scene.Channel, position scene.AxisPosition, ...) scene.Axis + func BuildGradientLegend(in LegendInputs, plot scene.Rect) *scene.Legend + func BuildSelections(specSel map[string]spec.Selection) []scene.Selection + func BuildSymbolLegend(in LegendInputs, plot scene.Rect) *scene.Legend + func CategoryToColor(category string, categories []string, palette []*scene.Color) *scene.Color + func DefaultPalette() []*scene.Color + func Encode(s *spec.Spec, tables map[plan.NodeID]*table.Table, tipID plan.NodeID, ...) (*scene.SceneDoc, error) + func EncodeComposite(s *spec.Spec, composite *plan.CompositeDAG, ...) (*scene.SceneDoc, error) + func LogTicks(s *LogScale) []scene.Tick + func NiceTicks(min, max float64, count int) []float64 + func PowTicks(s *PowScale, count int) []scene.Tick + func SqrtTicks(s *SqrtScale, count int) []scene.Tick + func TicksWithLabels(values []float64, scale Scale, format string) ([]scene.Tick, error) + func TimeTicks(s *TimeScale, count int) []scene.Tick + type AxisOpts struct + Format string + Grid bool + LabelAngle float64 + LabelOverlap string + MinorTicks bool + Title string + func DefaultAxisOpts(title string) AxisOpts + type BandScale = scale.BandScale + type EncodeOpts struct + Height float64 + OverrideXScale Scale + OverrideYScale Scale + Theme *scene.Theme + ThemeName string + Width float64 + type GradientLegend struct + DomainMax float64 + DomainMin float64 + ID string + LabelFormat string + Stops []scene.GradientStop + type Layout struct + Frame scene.Rect + Padding Padding + Plot scene.Rect + func Compute(width, height float64, hasTitle bool) Layout + func ComputeSparkline(width, height float64) Layout + type LegendInputs struct + Categories []string + Channel scene.Channel + Gradient *GradientLegend + Palette []*scene.Color + Position scene.LegendPosition + Title string + type LinearScale = scale.LinearScale + type LogScale = scale.LogScale + type OrdinalScale = scale.OrdinalScale + type Padding struct + Bottom float64 + Left float64 + Right float64 + Top float64 + func DefaultPadding(hasTitle bool) Padding + type PointScale = scale.PointScale + type PowScale = scale.PowScale + type Scale = scale.Scale + func ResolveScale(channelType string, kind table.Kind, values []any, rangeMin, rangeMax float64) (Scale, *scene.Warning, error) + func ResolveScaleTyped(scaleType scene.ScaleType, values []any, rangeMin, rangeMax float64, ...) (Scale, *scene.Warning, error) + type ScaleOpts struct + Base float64 + Exp float64 + type SqrtScale = scale.SqrtScale + type TimeScale = scale.TimeScale