Versions in this module Expand all Collapse all v0 v0.2.0 May 27, 2026 Changes in this version + func ToEpochMs(v any) (float64, bool) + func ToFloat(v any) (float64, bool) + type BandScale struct + Categories []string + Padding float64 + RangeMax float64 + RangeMin float64 + func (s *BandScale) Apply(value any) (float64, error) + func (s *BandScale) BandCenter(cat string) (float64, error) + func (s *BandScale) BandWidth() float64 + func (s *BandScale) Domain() []any + func (s *BandScale) Range() [2]float64 + func (s *BandScale) Type() scene.ScaleType + type BandSizer interface + BandWidth func() float64 + type LinearScale struct + DomainMax float64 + DomainMin float64 + RangeMax float64 + RangeMin float64 + func (s *LinearScale) Apply(value any) (float64, error) + func (s *LinearScale) Domain() []any + func (s *LinearScale) Range() [2]float64 + func (s *LinearScale) Type() scene.ScaleType + type LogScale struct + Base float64 + DomainMax float64 + DomainMin float64 + RangeMax float64 + RangeMin float64 + func (s *LogScale) Apply(value any) (float64, error) + func (s *LogScale) Domain() []any + func (s *LogScale) Range() [2]float64 + func (s *LogScale) Type() scene.ScaleType + type OrdinalScale struct + Categories []string + Positions []float64 + func (s *OrdinalScale) Apply(value any) (float64, error) + func (s *OrdinalScale) ApplyColor(category string, palette []*scene.Color) *scene.Color + func (s *OrdinalScale) Domain() []any + func (s *OrdinalScale) Range() [2]float64 + func (s *OrdinalScale) Type() scene.ScaleType + type PointScale struct + Categories []string + Padding float64 + RangeMax float64 + RangeMin float64 + func (s *PointScale) Apply(value any) (float64, error) + func (s *PointScale) Domain() []any + func (s *PointScale) Range() [2]float64 + func (s *PointScale) Type() scene.ScaleType + type PowScale struct + DomainMax float64 + DomainMin float64 + Exp float64 + RangeMax float64 + RangeMin float64 + func (s *PowScale) Apply(value any) (float64, error) + func (s *PowScale) Domain() []any + func (s *PowScale) Range() [2]float64 + func (s *PowScale) Type() scene.ScaleType + type Scale interface + Apply func(value any) (float64, error) + Domain func() []any + Range func() [2]float64 + Type func() scene.ScaleType + type SqrtScale struct + Inner PowScale + func (s *SqrtScale) Apply(value any) (float64, error) + func (s *SqrtScale) Domain() []any + func (s *SqrtScale) Range() [2]float64 + func (s *SqrtScale) Type() scene.ScaleType + type TimeScale struct + Linear *LinearScale + func (s *TimeScale) Apply(value any) (float64, error) + func (s *TimeScale) Domain() []any + func (s *TimeScale) Range() [2]float64 + func (s *TimeScale) Type() scene.ScaleType