Versions in this module Expand all Collapse all v0 v0.2.1 May 28, 2026 v0.2.0 May 27, 2026 Changes in this version + const CurrentVersion + const WarnLayerSkipped + const WarnMarkNotImplemented + const WarnNoDataForLayer + const WarnPrecisionTruncation + const WarnTimeScaleStubbed + type Animation struct + DurationMs int + Easing string + Enter string + Exit string + StaggerMs int + type Annotation struct + Data json.RawMessage + Type AnnotationType + type AnnotationType string + const AnnotationArrow + const AnnotationLine + const AnnotationRegion + const AnnotationText + type ArcGeom struct + Cx float64 + Cy float64 + EndAngle float64 + InnerR float64 + OuterR float64 + PadAngle float64 + StartAngle float64 + type AreaGeom struct + Curve CurveType + Lower [][2]float64 + Upper [][2]float64 + type Axis struct + Channel Channel + Domain Line + Grid []Line + ID string + LabelAngle float64 + LabelStyle Style + Position AxisPosition + Scale ScaleSpec + Ticks []Tick + Title string + TitleStyle Style + type AxisPosition string + const AxisPositionBottom + const AxisPositionLeft + const AxisPositionRight + const AxisPositionTop + type Channel string + const ChannelColor + const ChannelOpacity + const ChannelShape + const ChannelSize + const ChannelX + const ChannelX2 + const ChannelY + const ChannelY2 + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + func ColorFromHex(s string) (*Color, error) + func (c *Color) CSS() string + func (c *Color) Hex() string + type ConditionalAttr struct + Attr string + Otherwise any + Selection string + WhenValue any + type CurveType string + const CurveCardinal + const CurveLinear + const CurveMonotone + const CurveStep + type DatasetRef struct + Hash string + Name string + type Datum struct + Fields map[string]any + LayerID string + RowID int64 + type DatumRef struct + LayerID string + RowID int64 + type Defs struct + Clips map[string]Rect + Filters map[string]Filter + Gradients map[string]Gradient + Patterns map[string]Pattern + type Filter struct + Radius float64 + Type string + type Gradient struct + Stops []GradientStop + Type string + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + type GradientStop struct + Color Color + Offset float64 + type GridHeaders struct + Bottom []string + Left []string + Right []string + Top []string + type GridLayout struct + ColSizes []float64 + Cols int + GapPx int + Headers GridHeaders + RowSizes []float64 + Rows int + type ImageGeom struct + H float64 + Href string + W float64 + X float64 + Y float64 + type Legend struct + Channel Channel + Entries []LegendEntry + Frame Rect + ID string + LabelStyle Style + Position LegendPosition + Title string + TitleStyle Style + type LegendEntry struct + Label string + Swatch SwatchSpec + type LegendPosition string + const LegendBottom + const LegendBottomLeft + const LegendBottomRight + const LegendLeft + const LegendRight + const LegendTop + const LegendTopLeft + const LegendTopRight + type Line struct + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + type LineGeom struct + Curve CurveType + Dash []float64 + Points [][2]float64 + type Mark struct + Arc *ArcGeom + Area *AreaGeom + Conditions []ConditionalAttr + Datum *Datum + Geoshape *PolygonGeom + ID string + Image *ImageGeom + Key string + Line *LineGeom + Path *PathGeom + Point *PointGeom + Rect *RectGeom + Rule *RuleGeom + Style Style + Text *TextGeom + Tooltip *Tooltip + Type MarkType + func (m *Mark) Validate() error + type MarkType string + const MarkArc + const MarkArea + const MarkGeoshape + const MarkImage + const MarkLine + const MarkPath + const MarkPoint + const MarkRect + const MarkRule + const MarkText + type PathGeom struct + D string + type Pattern struct + Size float64 + Type string + type PointGeom struct + Cx float64 + Cy float64 + R float64 + Shape PointShape + type PointShape string + const ShapeCircle + const ShapeCross + const ShapeDiamond + const ShapeSquare + const ShapeTriangle + type PolygonGeom struct + Holes [][][2]float64 + Outer [][2]float64 + type Reactive string + const ReactiveBoth + const ReactiveClient + const ReactiveServer + type Rect struct + H float64 + W float64 + X float64 + Y float64 + func (r Rect) Bottom() float64 + func (r Rect) CenterX() float64 + func (r Rect) CenterY() float64 + func (r Rect) Right() float64 + type RectGeom struct + CornerR float64 + H float64 + W float64 + X float64 + Y float64 + type ResolveStrategy string + const ResolveGlobal + const ResolveIndependent + const ResolveIntersect + const ResolveUnion + type RuleGeom struct + Dash []float64 + X1 float64 + X2 float64 + Y1 float64 + Y2 float64 + type ScaleSpec struct + Base float64 + Clamp bool + Domain []any + Exp float64 + Nice bool + Padding float64 + Range [2]float64 + Type ScaleType + type ScaleType string + const ScaleBand + const ScaleLinear + const ScaleLog + const ScaleOrdinal + const ScalePoint + const ScalePow + const ScaleSqrt + const ScaleTime + type Scene struct + Animation *Animation + Annotations []Annotation + Axes []Axis + Defs *Defs + Frame Rect + ID string + Layers []SceneLayer + Legends []Legend + Plot Rect + Selections []Selection + Subtitle *TextElement + Title *TextElement + type SceneCell struct + Col int + ColSpan int + Row int + RowSpan int + Scene Scene + type SceneDoc struct + Datasets []DatasetRef + Grid SceneGrid + Theme *Theme + Version string + Warnings []Warning + func NewDoc() *SceneDoc + type SceneGrid struct + Cells []SceneCell + Layout GridLayout + Shared SharedAxes + type SceneLayer struct + Clip bool + Hidden bool + ID string + Mark MarkType + Marks []Mark + Opacity float64 + Source string + ZIndex int + type Selection struct + Channels []Channel + Encodings []string + ID string + InitState *SelectionState + Kind SelectionKind + On SelectionEvent + Reactive Reactive + Resolve ResolveStrategy + type SelectionEvent string + const EventBrush + const EventClick + const EventDblclick + const EventHover + const EventLasso + type SelectionKind string + const SelectionInterval + const SelectionPoint + type SelectionRange struct + X [2]float64 + Y [2]float64 + type SelectionState struct + Points []DatumRef + Range *SelectionRange + type SharedAxes struct + X *Axis + Y *Axis + type Style struct + Cursor string + Fill *Color + FontFamily string + FontWeight int + Opacity float64 + Stroke *Color + StrokeDash []float64 + StrokeWidth float64 + type SwatchSpec struct + Color *Color + GradientID string + Shape PointShape + Type SwatchType + type SwatchType string + const SwatchGradient + const SwatchSolid + const SwatchSymbol + type TextAnchor string + const AnchorEnd + const AnchorMiddle + const AnchorStart + type TextBaseline string + const BaselineAlphabetic + const BaselineBottom + const BaselineHanging + const BaselineMiddle + const BaselineTop + type TextElement struct + Content string + Style Style + X float64 + Y float64 + type TextGeom struct + Anchor TextAnchor + Angle float64 + Baseline TextBaseline + Content string + FontSize float64 + X float64 + Y float64 + type Theme struct + Background string + CSS string + ColorAxis *Color + ColorGrid *Color + ColorText *Color + FontMono string + FontSans string + Name string + func Default() *Theme + type Tick struct + Label string + LabelHidden bool + Minor bool + Pixel float64 + Value any + type Tooltip struct + Lines []TooltipLine + Position TooltipPosition + type TooltipLine struct + Label string + Style Style + type TooltipPosition string + const TooltipAuto + const TooltipBottom + const TooltipLeft + const TooltipRight + const TooltipTop + type Warning struct + Code string + Details map[string]any + Layer string + Message string