ihb2032/MoonFrame/chart does not have a README file

    Chart

    pub(all) enum Chart {
    Single(ChartSpec)
    Layer(VegaLayer)
    VConcat(VegaConcat)
    HConcat(VegaConcat)
    Concat(VegaConcat)
    Facet(VegaFacet)
    Repeat(VegaRepeat)
    } derive(Eq,
    Debug
    )

    A chart: a single view (a ChartSpec, wrapped through Chart::of) or a composition over child charts — Layer (children in one coordinate system), VConcat / HConcat / Concat (a vertical, horizontal, or wrapped grid), Facet (small multiples by a row / column channel), and Repeat (the same view over a field list). Compositions nest: a concat's child may itself be a layer or a facet. pub(all) so callers build the variants; Chart::of wraps a single view, and the operator constructors (VegaLayer::VegaLayer, …) build the compositions.

    Chart::equal

    fn Chart::equal(Chart, Chart) -> Bool

    Chart::not_equal

    fn Chart::not_equal(x : Chart, y : Chart) -> Bool

    Chart::of

    fn Chart::of(spec : ChartSpec) -> Chart

    A single-view chart from a ChartSpec — the wrap format_vega_lite callers hand a bare spec through.

    Chart::to_repr

    ChartKind

    pub(all) enum ChartKind {
    Bar
    Line
    Point
    Area
    Tick
    Rect
    Rule
    Circle
    Square
    Trail
    Text
    Arc
    Image
    Geoshape
    Boxplot
    Errorbar
    Errorband
    } derive(Eq,
    Debug
    )

    The mark type of a chart, mapped to a Vega-Lite top-level mark: Bar → "bar", Line → "line", Point → "point", Area → "area", Tick → "tick", Rect → "rect", Rule → "rule", Circle → "circle", Square → "square", Trail → "trail", Text → "text", Arc → "arc", Image → "image", Geoshape → "geoshape", and the composites Boxplot → "boxplot", Errorbar → "errorbar", Errorband → "errorband". pub(all) so callers can name the variants when building a ChartSpec (though the ChartSpec constructors set the kind for you).

    ChartKind::equal

    fn ChartKind::equal(ChartKind, ChartKind) -> Bool

    ChartKind::not_equal

    fn ChartKind::not_equal(x : ChartKind, y : ChartKind) -> Bool

    ChartSpec

    pub struct ChartSpec {
    kind : ChartKind
    x : VegaChannel?
    y : VegaChannel?
    x2 : VegaChannel?
    y2 : VegaChannel?
    x_error : VegaChannel?
    x_error2 : VegaChannel?
    y_error : VegaChannel?
    y_error2 : VegaChannel?
    x_offset : VegaChannel?
    y_offset : VegaChannel?
    longitude : VegaChannel?
    longitude2 : VegaChannel?
    latitude : VegaChannel?
    latitude2 : VegaChannel?
    theta : VegaChannel?
    theta2 : VegaChannel?
    radius : VegaChannel?
    radius2 : VegaChannel?
    color : VegaChannel?
    fill : VegaChannel?
    stroke : VegaChannel?
    opacity : VegaChannel?
    fill_opacity : VegaChannel?
    stroke_opacity : VegaChannel?
    stroke_width : VegaChannel?
    stroke_dash : VegaChannel?
    size : VegaChannel?
    shape : VegaChannel?
    angle : VegaChannel?
    time : VegaChannel?
    text : VegaChannel?
    tooltip : VegaChannel?
    href : VegaChannel?
    url : VegaChannel?
    description_channel : VegaChannel?
    key : VegaChannel?
    detail : VegaChannel?
    order : VegaChannel?
    title : VegaTitle?
    width : VegaExtent?
    height : VegaExtent?
    name : String?
    description : String?
    autosize : VegaAutoSize?
    padding : VegaPadding?
    background : String?
    projection : VegaProjection?
    view : VegaViewBackground?
    config : VegaConfig?
    usermeta :
    Json
    ?
    // private fields
    } derive(Eq,
    Debug
    )

    A chart specification: the mark kind, its encoding channels (each a VegaChannel, built with field / VegaChannel::repeat / constant / datum), and the optional top-level chrome (title, width / height as a VegaExtent, name, description, autosize, padding, background). Fields are read-only outside the package — build a spec through one of the mark-named constructors (ChartSpec::bar(x,y) / line / point / area / tick / rect / rule / circle / square / trail / boxplot, the polar ChartSpec::arc(theta), ChartSpec::text(x, y, text), ChartSpec::image(x, y, url), ChartSpec::geoshape(shape), and the error composites ChartSpec::errorbar / errorband), each naming the channels that mark commonly consumes — or through ChartSpec::of, the general form that carries every channel and every chrome property there is:

    ChartSpec::bar(field("region"), field("revenue"), title="Revenue")

    Every field channel's column resolves against the frame at format_vega_lite time in a fixed order — x, y, x2, y2, xError, xError2, yError, yError2, xOffset, yOffset, longitude, longitude2, latitude, latitude2, theta, theta2, radius, radius2, color, fill, stroke, opacity, fillOpacity, strokeOpacity, strokeWidth, strokeDash, size, shape, angle, time, text, tooltip, href, url, description (the ARIA channel, description_channel here because the top-level prose description takes the plain name), key, detail, order — and the first name absent from the frame raises ColumnNotFound (a count channel reads no column). Each channel's dtype decides its Vega-Lite field type (the dtype→type rule format_vega_lite's doc states) unless the channel's type_override replaces it; the declared modifiers pass through to the Vega-Lite runtime, which computes them at render time.

    ChartSpec::arc

    fn ChartSpec::arc(theta : VegaChannel, color? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, radius? : VegaChannel, radius2? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A polar arc chart (Vega-Lite mark: "arc"): the theta channel is the slice angle (a pie names a color grouping), radius2 cuts the center out for a donut, and a radius channel varies the slice length for a rose.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::area

    fn ChartSpec::area(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    An area chart of y against x (Vega-Lite mark: "area"); x2 / y2 name the band's far edge for a ranged area.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::bar

    fn ChartSpec::bar(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    The optional parameters carry the ChartSpec doc's channel contract. The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::boxplot

    fn ChartSpec::boxplot(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A box-and-whisker summary of y for each x group (Vega-Lite mark:"boxplot"); the Vega-Lite runtime computes the quartiles and whiskers itself, so a plain x / y pair is a complete box plot.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::circle

    fn ChartSpec::circle(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A scatter chart of filled circles of y against x (Vega-Lite mark: "circle"); a size channel is the circle area.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::equal

    fn ChartSpec::equal(ChartSpec, ChartSpec) -> Bool

    ChartSpec::errorband

    fn ChartSpec::errorband(x : VegaChannel, y : VegaChannel, x_error? : VegaChannel, x_error2? : VegaChannel, y_error? : VegaChannel, y_error2? : VegaChannel, color? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    An error-band chart of y against x (Vega-Lite mark:"errorband") — a line or area with a band around it; the band comes from an error channel (y_error / x_error, optionally with its far end in the 2 form) or, absent one, from the channel's own spread, which the runtime computes.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::errorbar

    fn ChartSpec::errorbar(x : VegaChannel, y : VegaChannel, x_error? : VegaChannel, x_error2? : VegaChannel, y_error? : VegaChannel, y_error2? : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    An error-bar chart of y against x (Vega-Lite mark: "errorbar") — a point with an error interval; the interval comes from an error channel (x_error / y_error, optionally with its far end in x_error2 / y_error2) or, absent one, from the channel's own spread, which the runtime computes.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::geoshape

    fn ChartSpec::geoshape(shape : VegaChannel, color? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A geographic-shape chart (Vega-Lite mark: "geoshape"): the shape channel names the GeoJSON column (field("geo", type_override=Geojson) — the dtype rule never infers geojson from a String column).

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::image

    fn ChartSpec::image(x : VegaChannel, y : VegaChannel, url : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    An image chart of y against x (Vega-Lite mark: "image") — the url channel's cell (an image URL) drawn at each point.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::line

    fn ChartSpec::line(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A line chart of y against x (Vega-Lite mark: "line"); a detail channel splits the line into one per group without coloring them.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::not_equal

    fn ChartSpec::not_equal(x : ChartSpec, y : ChartSpec) -> Bool

    ChartSpec::of

    fn ChartSpec::of(kind : ChartKind, x? : VegaChannel, y? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, x_error? : VegaChannel, x_error2? : VegaChannel, y_error? : VegaChannel, y_error2? : VegaChannel, x_offset? : VegaChannel, y_offset? : VegaChannel, longitude? : VegaChannel, longitude2? : VegaChannel, latitude? : VegaChannel, latitude2? : VegaChannel, theta? : VegaChannel, theta2? : VegaChannel, radius? : VegaChannel, radius2? : VegaChannel, color? : VegaChannel, fill? : VegaChannel, stroke? : VegaChannel, opacity? : VegaChannel, fill_opacity? : VegaChannel, stroke_opacity? : VegaChannel, stroke_width? : VegaChannel, stroke_dash? : VegaChannel, size? : VegaChannel, shape? : VegaChannel, angle? : VegaChannel, time? : VegaChannel, text? : VegaChannel, tooltip? : VegaChannel, href? : VegaChannel, url? : VegaChannel, description_channel? : VegaChannel, key? : VegaChannel, detail? : VegaChannel, order? : VegaChannel, title? : VegaTitle, width? : VegaExtent, height? : VegaExtent, name? : String, description? : String, autosize? : VegaAutoSize, padding? : VegaPadding, background? : String, projection? : VegaProjection, view? : VegaViewBackground, transform? : Array[VegaTransform], params? : Array[VegaParam], config? : VegaConfig, usermeta? :
    Json
    ) -> ChartSpec

    The general form: a spec of any kind with any channel and any top-level chrome property named — every encoding channel the schema's Encoding lists (the mark-named constructors carry only the channels their mark commonly consumes), plus title, width, height, name, description, autosize, padding, and background. Channels resolve in the fixed order the ChartSpec doc states.

    ChartSpec::params

    fn ChartSpec::params(self : ChartSpec) -> Array[VegaParam]?

    The parameter declarations, copied — reading the field itself would hand the caller the array the spec holds.

    ChartSpec::point

    fn ChartSpec::point(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A scatter (point) chart of y against x (Vega-Lite mark:"point"); a size channel is the symbol area, an opacity channel the per-point transparency.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::rect

    fn ChartSpec::rect(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A rectangle chart of y against x (Vega-Lite mark: "rect") — the heatmap grid; x2 / y2 name each cell's far corner for explicit spans.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::rule

    fn ChartSpec::rule(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A rule chart of y against x (Vega-Lite mark: "rule") — a line spanning the plot, one per row; x2 / y2 name the rule's far endpoint, and a rule with only x and y2 (or y and x2) draws a zero-width segment at each row.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::square

    fn ChartSpec::square(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A scatter chart of filled squares of y against x (Vega-Lite mark: "square"); a size channel is the square area.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::text

    fn ChartSpec::text(x : VegaChannel, y : VegaChannel, text : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A text chart of y against x (Vega-Lite mark: "text") — the text channel's cell drawn as a label at each point; a size channel is the font size.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::tick

    fn ChartSpec::tick(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A tick chart of y against x (Vega-Lite mark: "tick") — a dense column of short strokes, one per row; a size channel is the tick thickness.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::trail

    fn ChartSpec::trail(x : VegaChannel, y : VegaChannel, color? : VegaChannel, size? : VegaChannel, opacity? : VegaChannel, tooltip? : VegaChannel, detail? : VegaChannel, title? : String, width? : VegaExtent, height? : VegaExtent) -> ChartSpec

    A trail chart of y against x (Vega-Lite mark: "trail") — a line whose stroke width follows the size channel at each point.

    The optional parameters carry the ChartSpec doc's channel contract.

    ChartSpec::transform

    fn ChartSpec::transform(self : ChartSpec) -> Array[VegaTransform]?

    The transform pipeline, copied — reading the field itself would hand the caller the array the spec holds.

    FramePlot

    pub struct FramePlot {
    // private fields
    }

    The mark-picking stage of a plot. Each method is the sugar of its ChartSpec counterpart — the same channels, named as columns, plus the constructor's title / width / height chrome. A bare column name wraps in field, so the channel's emitted type follows its column's dtype at render time. To encode something other than a bare column (an aggregate, a bin, a constant), mark with the plain column and replace the channel afterwards through Plot::encode with one built by field / constant / datum. Marking again is a fresh plot(df).

    FramePlot::arc

    fn FramePlot::arc(self : FramePlot, theta~ : String, color? : String, opacity? : String, tooltip? : String, radius? : String, radius2? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::arc with its channels taken as column names.

    FramePlot::area

    fn FramePlot::area(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, x2? : String, y2? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::area with its channels taken as column names.

    FramePlot::bar

    fn FramePlot::bar(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, x2? : String, y2? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::bar with its channels taken as column names. ChartSpec::bar with its channels taken as column names.

    FramePlot::boxplot

    fn FramePlot::boxplot(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::boxplot with its channels taken as column names.

    FramePlot::circle

    fn FramePlot::circle(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::circle with its channels taken as column names.

    FramePlot::errorband

    fn FramePlot::errorband(self : FramePlot, x~ : String, y~ : String, x_error? : String, x_error2? : String, y_error? : String, y_error2? : String, color? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::errorband with its channels taken as column names.

    FramePlot::errorbar

    fn FramePlot::errorbar(self : FramePlot, x~ : String, y~ : String, x_error? : String, x_error2? : String, y_error? : String, y_error2? : String, color? : String, size? : String, opacity? : String, tooltip? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::errorbar with its channels taken as column names.

    FramePlot::geoshape

    fn FramePlot::geoshape(self : FramePlot, shape~ : String, color? : String, opacity? : String, tooltip? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::geoshape with its channels taken as column names.

    FramePlot::image

    fn FramePlot::image(self : FramePlot, x~ : String, y~ : String, url~ : String, opacity? : String, tooltip? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::image with its channels taken as column names.

    FramePlot::line

    fn FramePlot::line(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::line with its channels taken as column names.

    FramePlot::point

    fn FramePlot::point(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::point with its channels taken as column names.

    FramePlot::rect

    fn FramePlot::rect(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, x2? : String, y2? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::rect with its channels taken as column names.

    FramePlot::rule

    fn FramePlot::rule(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, x2? : String, y2? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::rule with its channels taken as column names.

    FramePlot::square

    fn FramePlot::square(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::square with its channels taken as column names.

    FramePlot::text

    fn FramePlot::text(self : FramePlot, x~ : String, y~ : String, text~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::text with its channels taken as column names.

    FramePlot::tick

    fn FramePlot::tick(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::tick with its channels taken as column names.

    FramePlot::trail

    fn FramePlot::trail(self : FramePlot, x~ : String, y~ : String, color? : String, size? : String, opacity? : String, tooltip? : String, detail? : String, title? : String, width? : VegaExtent, height? : VegaExtent) -> Plot

    ChartSpec::trail with its channels taken as column names.

    Plot

    pub struct Plot {
    // private fields
    }

    A marked plot over a bound frame: refine the encoding, set the chrome, or render. encode replaces the channels it is given and keeps the rest; the chrome setters overwrite the title / width / height; the hatches hand out the underlying ChartSpec and Chart for what the chain does not name (scales, axes, config, composition); the terminals serialise — to_json is format_vega_lite over the bound frame, to_html its page form, and write_json / write_html the file-writing pair.

    Plot::chart

    fn Plot::chart(self : Plot) -> Chart

    The underlying single-view Chart — the composition layer (layering, concatenation, faceting) builds over Charts.

    Plot::encode

    fn Plot::encode(self : Plot, x? : VegaChannel, y? : VegaChannel, x2? : VegaChannel, y2? : VegaChannel, x_error? : VegaChannel, x_error2? : VegaChannel, y_error? : VegaChannel, y_error2? : VegaChannel, x_offset? : VegaChannel, y_offset? : VegaChannel, longitude? : VegaChannel, longitude2? : VegaChannel, latitude? : VegaChannel, latitude2? : VegaChannel, theta? : VegaChannel, theta2? : VegaChannel, radius? : VegaChannel, radius2? : VegaChannel, color? : VegaChannel, fill? : VegaChannel, stroke? : VegaChannel, opacity? : VegaChannel, fill_opacity? : VegaChannel, stroke_width? : VegaChannel, stroke_dash? : VegaChannel, size? : VegaChannel, shape? : VegaChannel, angle? : VegaChannel, time? : VegaChannel, text? : VegaChannel, tooltip? : VegaChannel, href? : VegaChannel, url? : VegaChannel, description_channel? : VegaChannel, key? : VegaChannel, detail? : VegaChannel, order? : VegaChannel) -> Plot

    Replace the given encoding channels with full VegaChannels — e.g. plot(df).bar(x="region",y="revenue").encode(y=field("revenue", aggregate=Sum)). A channel named here overwrites the mark's; one left out keeps its current value. A channel cannot be cleared through this method — take the spec() hatch for that. The parameter set is ChartSpec::of's channel list.

    Plot::height

    fn Plot::height(self : Plot, height : VegaExtent) -> Plot

    Set the top-level height.

    Plot::spec

    fn Plot::spec(self : Plot) -> ChartSpec

    The underlying ChartSpec — a functional update over its fields reaches the chrome the chain leaves unnamed.

    Plot::title

    fn Plot::title(self : Plot, title : String) -> Plot

    Set the top-level title — the title chrome the mark methods also carry, settable after the mark.

    Plot::to_html

    fn Plot::to_html(self : Plot) -> String raise
    DataError

    Render as a self-contained HTML page — format_vega_html over the bound frame and the built spec.

    Plot::to_json

    fn Plot::to_json(self : Plot) -> String raise
    DataError

    Render as a Vega-Lite v6 JSON spec — format_vega_lite over the bound frame and the built spec.

    Plot::width

    fn Plot::width(self : Plot, width : VegaExtent) -> Plot

    Set the top-level width.

    Plot::write_html

    fn Plot::write_html(self : Plot, path : String) -> Unit raise
    DataError

    Write the self-contained chart page to path — write_vega_html over the bound frame.

    Plot::write_json

    fn Plot::write_json(self : Plot, path : String) -> Unit raise
    DataError

    Write the Vega-Lite JSON spec to path — write_vega_lite over the bound frame.

    VegaAggField

    pub struct VegaAggField {
    op : VegaAggregate
    field : String?
    as_ : String
    } derive(Eq,
    Debug
    )

    One aggregated output: the operation, the input field it runs over (absent for Count), and the output name.

    VegaAggField::VegaAggField

    fn VegaAggField::VegaAggField(op~ : VegaAggregate, as_~ : String, field? : String) -> VegaAggField

    One aggregation field: the operator, its output name, and the column it reads.

    VegaAggField::equal

    VegaAggField::not_equal

    fn VegaAggField::not_equal(x : VegaAggField, y : VegaAggField) -> Bool

    VegaAggregate

    pub(all) enum VegaAggregate {
    Argmax
    Argmin
    Average
    Count
    Distinct
    Max
    Mean
    Median
    Min
    Missing
    Product
    Q1
    Q3
    CI0
    CI1
    Stderr
    Stdev
    Stdevp
    Sum
    Valid
    Values
    Variance
    Variancep
    Exponential
    Exponentialb
    } derive(Eq,
    Debug
    )

    A Vega-Lite channel aggregate, declared for the Vega-Lite runtime to compute at render time (MoonFrame emits it, it does not evaluate it): one variant per operation the schema's AggregateOp lists. Count tallies the rows of each group and needs no column — a count channel is exempt from column resolution and its field type is "quantitative"; ArgMax / ArgMin may also carry a field in the schema's object form, which the string form emitted here does not (a bare field under the same aggregate serves the common case). pub(all) so callers can name the variants in a channel's aggregate.

    VegaAggregate::equal

    VegaAggregate::not_equal

    fn VegaAggregate::not_equal(x : VegaAggregate, y : VegaAggregate) -> Bool

    VegaAggregateTransform

    pub struct VegaAggregateTransform {
    // private fields
    } derive(Eq,
    Debug
    )

    The aggregate transform: one row per group, the outputs from the aggregated-field list, the groups from the group-by fields (the whole frame, when unset).

    VegaAggregateTransform::VegaAggregateTransform

    fn VegaAggregateTransform::VegaAggregateTransform(aggregate~ : Array[VegaAggField], groupby? : Array[String]) -> VegaAggregateTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaAggregateTransform::aggregate

    The aggregate list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAggregateTransform::equal

    VegaAggregateTransform::groupby

    fn VegaAggregateTransform::groupby(self : VegaAggregateTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAggregateTransform::not_equal

    VegaAlign

    pub(all) enum VegaAlign {
    Left
    Center
    Right
    } derive(Eq,
    Debug
    )

    A text alignment: Left → "left", Center → "center", Right → "right".

    VegaAlign::equal

    fn VegaAlign::equal(VegaAlign, VegaAlign) -> Bool

    VegaAlign::not_equal

    fn VegaAlign::not_equal(x : VegaAlign, y : VegaAlign) -> Bool

    VegaAlignMode

    pub(all) enum VegaAlignMode {
    Layout(VegaLayoutAlign)
    Sides(VegaRowColAlign)
    } derive(Eq,
    Debug
    )

    A composition's alignment: one mode for both sides, or per-side modes.

    VegaAlignMode::equal

    VegaAlignMode::not_equal

    fn VegaAlignMode::not_equal(x : VegaAlignMode, y : VegaAlignMode) -> Bool

    VegaAnchor

    pub(all) enum VegaAnchor {
    Start
    Middle
    End
    } derive(Eq,
    Debug
    )

    An anchor point: Start, Middle, or End.

    VegaAnchor::equal

    fn VegaAnchor::equal(VegaAnchor, VegaAnchor) -> Bool

    VegaAnchor::not_equal

    fn VegaAnchor::not_equal(x : VegaAnchor, y : VegaAnchor) -> Bool

    VegaAsField

    pub(all) enum VegaAsField {
    One(String)
    Pair(String, String)
    } derive(Eq,
    Debug
    )

    An output-name pair: one field, or the start / end pair a binned or windowed transform writes.

    VegaAsField::equal

    fn VegaAsField::equal(VegaAsField, VegaAsField) -> Bool

    VegaAsField::not_equal

    fn VegaAsField::not_equal(x : VegaAsField, y : VegaAsField) -> Bool

    VegaAutoSize

    pub(all) enum VegaAutoSize {
    Pad
    Fit
    FitX
    FitY
    None
    } derive(Eq,
    Debug
    )

    A top-level autosize: Pad → "pad" (the default; the view grows to fit axes and legends), Fit → "fit", FitX → "fit-x", FitY →"fit-y" (each dimension shrinks the chart into the given total size), and None → "none" (no automatic fitting). pub(all) so callers can name the variants.

    VegaAutoSize::equal

    VegaAutoSize::not_equal

    fn VegaAutoSize::not_equal(x : VegaAutoSize, y : VegaAutoSize) -> Bool

    VegaAxis

    pub struct VegaAxis {
    disable : Bool?
    aria : Bool?
    band_position : Double?
    description : String?
    domain : Bool?
    domain_cap : VegaCap?
    domain_color : String?
    domain_dash_offset : Double?
    domain_opacity : Double?
    domain_width : Double?
    format : String?
    format_type : String?
    grid : Bool?
    grid_cap : VegaCap?
    grid_color : String?
    grid_dash_offset : Double?
    grid_opacity : Double?
    grid_width : Double?
    label_align : VegaAlign?
    label_angle : Double?
    label_baseline : VegaBaseline?
    label_bound : VegaLabelBound?
    label_color : String?
    label_expr : String?
    label_flush : VegaLabelFlush?
    label_flush_offset : Double?
    label_font : String?
    label_font_size : Double?
    label_font_style : String?
    label_font_weight : VegaFontWeight?
    label_limit : Double?
    label_line_height : Double?
    label_offset : Double?
    label_opacity : Double?
    label_overlap : VegaLabelOverlap?
    label_padding : Double?
    label_separation : Double?
    labels : Bool?
    max_extent : Double?
    min_extent : Double?
    offset : Double?
    orient : VegaAxisOrient?
    position : Double?
    style : String?
    tick_band : VegaTickBand?
    tick_cap : VegaCap?
    tick_color : String?
    tick_count : VegaTickInterval?
    tick_dash_offset : Double?
    tick_extra : Bool?
    tick_min_step : Double?
    tick_offset : Double?
    tick_opacity : Double?
    tick_round : Bool?
    tick_size : Double?
    tick_width : Double?
    ticks : Bool?
    title : String?
    title_align : VegaAlign?
    title_anchor : VegaAnchor?
    title_angle : Double?
    title_baseline : VegaBaseline?
    title_color : String?
    title_font : String?
    title_font_size : Double?
    title_font_style : String?
    title_font_weight : VegaFontWeight?
    title_limit : Double?
    title_line_height : Double?
    title_opacity : Double?
    title_padding : Double?
    title_x : Double?
    title_y : Double?
    translate : Double?
    zindex : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    An axis definition for a position channel, the schema's Axis in full static form — the domain line, the grid, the ticks, the labels, and the axis title, each styled, plus the orientation, the offset, explicit tick values, and a tick count in any of its three forms (a number, a calendar interval, or an interval with a step multiplier). Every property is optional; unset ones fall to the runtime's defaults. The one exception is disable: the schema carries it on the config axis alone (AxisConfig, the default every axis inherits), not on a channel's own axis definition — so the channel-side emission drops a set one and only the config emitters place it. The array-carrying ones (domain_dash, grid_dash, tick_dash, values) are copied at construction and copied again on read.

    VegaAxis::VegaAxis

    fn VegaAxis::VegaAxis(disable? : Bool, aria? : Bool, band_position? : Double, description? : String, domain? : Bool, domain_cap? : VegaCap, domain_color? : String, domain_dash? : Array[Double], domain_dash_offset? : Double, domain_opacity? : Double, domain_width? : Double, format? : String, format_type? : String, grid? : Bool, grid_cap? : VegaCap, grid_color? : String, grid_dash? : Array[Double], grid_dash_offset? : Double, grid_opacity? : Double, grid_width? : Double, label_align? : VegaAlign, label_angle? : Double, label_baseline? : VegaBaseline, label_bound? : VegaLabelBound, label_color? : String, label_expr? : String, label_flush? : VegaLabelFlush, label_flush_offset? : Double, label_font? : String, label_font_size? : Double, label_font_style? : String, label_font_weight? : VegaFontWeight, label_limit? : Double, label_line_height? : Double, label_offset? : Double, label_opacity? : Double, label_overlap? : VegaLabelOverlap, label_padding? : Double, label_separation? : Double, labels? : Bool, max_extent? : Double, min_extent? : Double, offset? : Double, orient? : VegaAxisOrient, position? : Double, style? : String, tick_band? : VegaTickBand, tick_cap? : VegaCap, tick_color? : String, tick_count? : VegaTickInterval, tick_dash? : Array[Double], tick_dash_offset? : Double, tick_extra? : Bool, tick_min_step? : Double, tick_offset? : Double, tick_opacity? : Double, tick_round? : Bool, tick_size? : Double, tick_width? : Double, ticks? : Bool, title? : String, title_align? : VegaAlign, title_anchor? : VegaAnchor, title_angle? : Double, title_baseline? : VegaBaseline, title_color? : String, title_font? : String, title_font_size? : Double, title_font_style? : String, title_font_weight? : VegaFontWeight, title_limit? : Double, title_line_height? : Double, title_opacity? : Double, title_padding? : Double, title_x? : Double, title_y? : Double, translate? : Double, values? : Array[
    Json
    ], zindex? : Double) -> VegaAxis

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaAxis::domain_dash

    fn VegaAxis::domain_dash(self : VegaAxis) -> Array[Double]?

    The domain_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAxis::equal

    fn VegaAxis::equal(VegaAxis, VegaAxis) -> Bool

    VegaAxis::grid_dash

    fn VegaAxis::grid_dash(self : VegaAxis) -> Array[Double]?

    The grid_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAxis::not_equal

    fn VegaAxis::not_equal(x : VegaAxis, y : VegaAxis) -> Bool

    VegaAxis::tick_dash

    fn VegaAxis::tick_dash(self : VegaAxis) -> Array[Double]?

    The tick_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAxis::to_repr

    VegaAxis::values

    The values values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaAxisOrient

    pub(all) enum VegaAxisOrient {
    Top
    Bottom
    Left
    Right
    } derive(Eq,
    Debug
    )

    An axis orientation: the four sides.

    VegaAxisOrient::equal

    VegaAxisOrient::not_equal

    fn VegaAxisOrient::not_equal(x : VegaAxisOrient, y : VegaAxisOrient) -> Bool

    VegaAxisRef

    pub(all) enum VegaAxisRef {
    Off
    Config(VegaAxis)
    } derive(Eq,
    Debug
    )

    A position channel's axis: a configuration, or Off (the schema's null, which removes the axis).

    VegaAxisRef::equal

    fn VegaAxisRef::equal(VegaAxisRef, VegaAxisRef) -> Bool

    VegaAxisRef::not_equal

    fn VegaAxisRef::not_equal(x : VegaAxisRef, y : VegaAxisRef) -> Bool

    VegaAxisResolve

    pub struct VegaAxisResolve {
    x : VegaResolveMode?
    y : VegaResolveMode?
    } derive(Eq,
    Debug
    )

    The axis-resolution block of a composition: the two position axes.

    VegaAxisResolve::VegaAxisResolve

    Build a per-axis resolution block; each axis optional.

    VegaAxisResolve::equal

    VegaAxisResolve::not_equal

    fn VegaAxisResolve::not_equal(x : VegaAxisResolve, y : VegaAxisResolve) -> Bool

    VegaBaseline

    pub(all) enum VegaBaseline {
    Alphabetic
    Top
    Middle
    Bottom
    LineTop
    LineBottom
    } derive(Eq,
    Debug
    )

    A text baseline: the alphabetic default and the three named baselines.

    VegaBaseline::equal

    VegaBaseline::not_equal

    fn VegaBaseline::not_equal(x : VegaBaseline, y : VegaBaseline) -> Bool

    VegaBin

    pub(all) enum VegaBin {
    On
    Params(VegaBinParams)
    Binned
    } derive(Eq,
    Debug
    )

    A Vega-Lite channel bin: On ("bin": true, the runtime picks the bins), Params (an explicit VegaBinParams), and Binned (the "binned" marker: the data is already binned — the start maps to x and the end to x2, so a binned histogram pairs Binned on x with the pre-binned end in x2). pub(all) so callers can name the variants.

    VegaBin::equal

    fn VegaBin::equal(VegaBin, VegaBin) -> Bool

    VegaBin::not_equal

    fn VegaBin::not_equal(x : VegaBin, y : VegaBin) -> Bool

    VegaBin::to_repr

    VegaBinParams

    pub struct VegaBinParams {
    maxbins : Int?
    anchor : Double?
    base : Double?
    nice : Bool?
    step : Double?
    minstep : Double?
    binned : Bool?
    extent : (Double, Double)?
    // private fields
    } derive(Eq,
    Debug
    )

    Explicit binning parameters, the schema's BinParams: the maximum bin count the binning method aims for (maxbins), an anchor to force as a bin boundary (anchor), a number base and allowable subdivision factors (base, divide), a required step size or the list to choose from (step, steps), a minimum allowed step (minstep), nice round boundaries (nice), already-binned data (binned), and an explicit value range (extent, a min / max pair). Fields are read-only outside the package — build one through the same-named constructor, which copies the array parameters it takes, and read divide / steps back through their accessors, which copy again.

    VegaBinParams::VegaBinParams

    fn VegaBinParams::VegaBinParams(maxbins? : Int, anchor? : Double, base? : Double, nice? : Bool, step? : Double, minstep? : Double, binned? : Bool, extent? : (Double, Double), divide? : Array[Double], steps? : Array[Double]) -> VegaBinParams

    Build explicit binning parameters; every parameter optional, unset ones left to the runtime's defaults. divide and steps are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaBinParams::divide

    fn VegaBinParams::divide(self : VegaBinParams) -> Array[Double]?

    The divide subdivision factors, copied — reading the field itself would hand the caller the array the spec holds.

    VegaBinParams::equal

    VegaBinParams::not_equal

    fn VegaBinParams::not_equal(x : VegaBinParams, y : VegaBinParams) -> Bool

    VegaBinParams::steps

    fn VegaBinParams::steps(self : VegaBinParams) -> Array[Double]?

    The steps candidate step sizes, copied for the same reason.

    VegaBinTransform

    pub struct VegaBinTransform {
    bin : VegaBin
    field : String
    as_ : VegaAsField
    } derive(Eq,
    Debug
    )

    The bin transform: bin field into maxbins buckets, writing the range to the output name (or the start / end pair).

    VegaBinTransform::VegaBinTransform

    fn VegaBinTransform::VegaBinTransform(bin~ : VegaBin, field~ : String, as_~ : VegaAsField) -> VegaBinTransform

    The bin transform: one numeric column binned into discrete bins.

    VegaBinTransform::equal

    VegaBinTransform::not_equal

    fn VegaBinTransform::not_equal(x : VegaBinTransform, y : VegaBinTransform) -> Bool

    VegaBind

    pub(all) enum VegaBind {
    Checkbox(VegaBindCheckbox)
    RadioSelect(VegaBindRadioSelect)
    Range(VegaBindRange)
    Input(VegaBindInput)
    Direct(VegaBindDirect)
    } derive(Eq,
    Debug
    )

    An input widget a parameter binds to: a checkbox, a radio / select menu, a range slider, a free-text input, or a direct element binding (an existing DOM element's events). pub(all) so callers build the variants; the options-carrying ones take copies at the builders.

    VegaBind::equal

    fn VegaBind::equal(VegaBind, VegaBind) -> Bool

    VegaBind::not_equal

    fn VegaBind::not_equal(x : VegaBind, y : VegaBind) -> Bool

    VegaBind::to_repr

    VegaBindCheckbox

    pub struct VegaBindCheckbox {
    debounce : Double?
    element : String?
    name : String?
    } derive(Eq,
    Debug
    )

    A checkbox binding for a boolean parameter.

    VegaBindCheckbox::VegaBindCheckbox

    fn VegaBindCheckbox::VegaBindCheckbox(debounce? : Double, element? : String, name? : String) -> VegaBindCheckbox

    Build a checkbox binding; every property optional.

    VegaBindCheckbox::equal

    VegaBindCheckbox::not_equal

    fn VegaBindCheckbox::not_equal(x : VegaBindCheckbox, y : VegaBindCheckbox) -> Bool

    VegaBindDirect

    pub struct VegaBindDirect {
    debounce : Double?
    element : String
    event : String?
    } derive(Eq,
    Debug
    )

    A direct binding to an existing element's events (no widget is created; the element is addressed by selector).

    VegaBindDirect::VegaBindDirect

    fn VegaBindDirect::VegaBindDirect(element~ : String, debounce? : Double, event? : String) -> VegaBindDirect

    Bind directly to the element matched by the selector; the event name and a debounce are optional.

    VegaBindDirect::equal

    VegaBindDirect::not_equal

    fn VegaBindDirect::not_equal(x : VegaBindDirect, y : VegaBindDirect) -> Bool

    VegaBindInput

    pub struct VegaBindInput {
    debounce : Double?
    element : String?
    name : String?
    autocomplete : String?
    placeholder : String?
    } derive(Eq,
    Debug
    )

    A free-text input binding, with an autocomplete hint and a placeholder.

    VegaBindInput::VegaBindInput

    fn VegaBindInput::VegaBindInput(debounce? : Double, element? : String, name? : String, autocomplete? : String, placeholder? : String) -> VegaBindInput

    Build a text-input binding; every property optional.

    VegaBindInput::equal

    VegaBindInput::not_equal

    fn VegaBindInput::not_equal(x : VegaBindInput, y : VegaBindInput) -> Bool

    VegaBindRadioSelect

    pub struct VegaBindRadioSelect {
    input : VegaRadioSelectInput?
    debounce : Double?
    element : String?
    name : String?
    // private fields
    } derive(Eq,
    Debug
    )

    A radio-button / dropdown binding: the options to choose among, optional display labels for them, and the widget's input kind (a radio group, or a dropdown through input=Select; unset emits the schema's default "radio").

    VegaBindRadioSelect::VegaBindRadioSelect

    fn VegaBindRadioSelect::VegaBindRadioSelect(options : Array[
    Json
    ], input? : VegaRadioSelectInput, labels? : Array[String], debounce? : Double, element? : String, name? : String) -> VegaBindRadioSelect

    Build a radio / select binding from the caller's options (copied) and optional labels (copied); the rest optional.

    VegaBindRadioSelect::equal

    VegaBindRadioSelect::labels

    fn VegaBindRadioSelect::labels(self : VegaBindRadioSelect) -> Array[String]?

    The option labels, copied for the same reason.

    VegaBindRadioSelect::not_equal

    VegaBindRadioSelect::options

    The option list, copied — reading the field itself would hand the caller the array the binding holds.

    VegaBindRange

    pub struct VegaBindRange {
    debounce : Double?
    element : String?
    name : String?
    max : Double?
    min : Double?
    step : Double?
    } derive(Eq,
    Debug
    )

    A range-slider binding with its bounds and step.

    VegaBindRange::VegaBindRange

    fn VegaBindRange::VegaBindRange(debounce? : Double, element? : String, name? : String, max? : Double, min? : Double, step? : Double) -> VegaBindRange

    Build a range binding; every property optional (the schema requires only the input kind, which the variant carries).

    VegaBindRange::equal

    VegaBindRange::not_equal

    fn VegaBindRange::not_equal(x : VegaBindRange, y : VegaBindRange) -> Bool

    VegaBins

    pub(all) enum VegaBins {
    Values(Array[Double])
    Params(VegaBinsParams)
    } derive(Eq,
    Debug
    )

    Scale bins: an explicit list of boundary values, or the parameter form.

    VegaBins::equal

    fn VegaBins::equal(VegaBins, VegaBins) -> Bool

    VegaBins::not_equal

    fn VegaBins::not_equal(x : VegaBins, y : VegaBins) -> Bool

    VegaBins::to_repr

    VegaBinsParams

    pub struct VegaBinsParams {
    step : Double
    start : Double?
    stop : Double?
    } derive(Eq,
    Debug
    )

    Explicit bin boundaries for a scale: the step size defining the bin width (required — the schema's ScaleBinParams demands it), with optional start and stop bounds.

    VegaBinsParams::VegaBinsParams

    fn VegaBinsParams::VegaBinsParams(step~ : Double, start? : Double, stop? : Double) -> VegaBinsParams

    Build one: the step size is required (an emission without one is a spec the schema would reject — the same rule VegaInterpolateParams applies to its type), the bounds are optional.

    VegaBinsParams::equal

    VegaBinsParams::not_equal

    fn VegaBinsParams::not_equal(x : VegaBinsParams, y : VegaBinsParams) -> Bool

    VegaBounds

    pub(all) enum VegaBounds {
    Full
    Flush
    } derive(Eq,
    Debug
    )

    A composition's bounds calculation: Full → "full" (the default, each sub-view sized to its full extent) and Flush → "flush" (the sub-views' outer edges only, for tighter grids).

    VegaBounds::equal

    fn VegaBounds::equal(VegaBounds, VegaBounds) -> Bool

    VegaBounds::not_equal

    fn VegaBounds::not_equal(x : VegaBounds, y : VegaBounds) -> Bool

    VegaBoxPlotConfig

    pub struct VegaBoxPlotConfig {
    extent :
    Json
    ?
    box : VegaMarkStyle?
    median : VegaMarkStyle?
    outliers : VegaMarkStyle?
    rule : VegaMarkStyle?
    ticks : VegaMarkStyle?
    size : Double?
    } derive(Eq,
    Debug
    )

    The boxplot defaults: the whisker extent, the box / median / outlier / rule / tick styles, and the box size.

    VegaBoxPlotConfig::VegaBoxPlotConfig

    fn VegaBoxPlotConfig::VegaBoxPlotConfig(extent? :
    Json
    , box? : VegaMarkStyle, median? : VegaMarkStyle, outliers? : VegaMarkStyle, rule? : VegaMarkStyle, ticks? : VegaMarkStyle, size? : Double) -> VegaBoxPlotConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaBoxPlotConfig::equal

    VegaBoxPlotConfig::not_equal

    fn VegaBoxPlotConfig::not_equal(x : VegaBoxPlotConfig, y : VegaBoxPlotConfig) -> Bool

    VegaBrush

    pub struct VegaBrush {
    fill : String?
    fill_opacity : Double?
    stroke : String?
    stroke_opacity : Double?
    stroke_width : Double?
    stroke_dash_offset : Double?
    cursor : String?
    // private fields
    } derive(Eq,
    Debug
    )

    The brush mark of an interval selection: its fill and stroke styling.

    VegaBrush::VegaBrush

    fn VegaBrush::VegaBrush(fill? : String, fill_opacity? : Double, stroke? : String, stroke_opacity? : Double, stroke_width? : Double, stroke_dash? : Array[Double], stroke_dash_offset? : Double, cursor? : String) -> VegaBrush

    Build a brush styling; every property optional, the dash list copied.

    VegaBrush::equal

    fn VegaBrush::equal(VegaBrush, VegaBrush) -> Bool

    VegaBrush::not_equal

    fn VegaBrush::not_equal(x : VegaBrush, y : VegaBrush) -> Bool

    VegaBrush::stroke_dash

    fn VegaBrush::stroke_dash(self : VegaBrush) -> Array[Double]?

    The brush dash list, copied.

    VegaCalculateTransform

    pub struct VegaCalculateTransform {
    calculate : String
    as_ : String
    } derive(Eq,
    Debug
    )

    The calculate transform: a Vega expression over each row, written to the output name.

    VegaCalculateTransform::VegaCalculateTransform

    fn VegaCalculateTransform::VegaCalculateTransform(calculate~ : String, as_~ : String) -> VegaCalculateTransform

    The calculate transform: one derived column per expression.

    VegaCalculateTransform::equal

    VegaCalculateTransform::not_equal

    VegaCap

    pub(all) enum VegaCap {
    Butt
    Round
    Square
    } derive(Eq,
    Debug
    )

    A stroke cap: butt, round, or square.

    VegaCap::equal

    fn VegaCap::equal(VegaCap, VegaCap) -> Bool

    VegaCap::not_equal

    fn VegaCap::not_equal(x : VegaCap, y : VegaCap) -> Bool

    VegaCap::to_repr

    VegaCenter

    pub(all) enum VegaCenter {
    All(Bool)
    Sides(VegaRowColBool)
    } derive(Eq,
    Debug
    )

    A composition's centering: one flag for both sides, or per-side flags.

    VegaCenter::equal

    fn VegaCenter::equal(VegaCenter, VegaCenter) -> Bool

    VegaCenter::not_equal

    fn VegaCenter::not_equal(x : VegaCenter, y : VegaCenter) -> Bool

    VegaChannel

    pub struct VegaChannel {
    field : String?
    repeat_ref : VegaRepeatRef?
    aggregate : VegaAggregate?
    bin : VegaBin?
    time_unit : VegaTimeUnit?
    sort : VegaChannelSort?
    type_override : VegaType?
    title : String?
    format : String?
    stack : VegaStack?
    band_position : Double?
    scale : VegaScaleRef?
    axis : VegaAxisRef?
    legend : VegaLegendRef?
    condition : VegaCondition?
    value :
    Json
    ?
    datum :
    Json
    ?
    } derive(Eq,
    Debug
    )

    One encoding-channel definition: a column field plus optional pass-through modifiers, or — instead of a field — a reference to a repeat variable (repeat_ref, the placeholder a child spec inside a Repeat composition resolves per panel) or a constant value or a constant datum (the schema's value / datum definitions; a channel is exactly one of the four, and the builders keep it that way — a field and a repeat_ref on one channel raise InvalidOperation at emission, since the schema's field slot holds one or the other). aggregate declares an aggregation over the column (a Count aggregate ignores the field — no column is read, and the channel's type is "quantitative"); bin declares binning; time_unit truncates a temporal column to calendar units; sort orders the channel's scale; type_override replaces the dtype-inferred field type on this one channel; title names the axis / legend entry and format formats its ticks (a number / time format pattern); stack overrides position stacking; band_position places a mark within its band (0 start, 0.5 middle, 1 end). The modifiers are declared, not computed — the Vega-Lite runtime evaluates them at render time. Build one with field / VegaChannel::repeat / constant / datum; fields are read-only outside the package.

    VegaChannel::count

    fn VegaChannel::count() -> VegaChannel

    The count aggregate with no field: it tallies the rows of each group. Emits {"aggregate":"count","type":"quantitative"} with no field key, and is the one aggregate exempt from column resolution — a histogram is ChartSpec::bar(field("price", bin=On),VegaChannel::count()).

    VegaChannel::equal

    fn VegaChannel::equal(VegaChannel, VegaChannel) -> Bool

    VegaChannel::not_equal

    fn VegaChannel::not_equal(x : VegaChannel, y : VegaChannel) -> Bool

    VegaChannel::repeat

    fn VegaChannel::repeat(repeat_ref~ : VegaRepeatRef, aggregate? : VegaAggregate, bin? : VegaBin, time_unit? : VegaTimeUnit, sort? : VegaChannelSort, type_override? : VegaType, title? : String, format? : String, stack? : VegaStack, band_position? : Double, scale? : VegaScaleRef, axis? : VegaAxisRef, legend? : VegaLegendRef, condition? : VegaCondition) -> VegaChannel

    The repeat-reference encoding channel: instead of naming one column, the channel names the repeat variable of the enclosing Repeat composition — each panel resolves it to the field that panel repeats over. Accepts the same pass-through modifiers as field; the dtype→type rule has no single column to read (the column varies per panel), so an unset type_override types the channel "quantitative" — set type_override when the repeated fields are temporal or nominal. A Count aggregate ignores the reference the way it ignores a field.

    VegaChannelSort

    pub(all) enum VegaChannelSort {
    Ascending
    Descending
    ByChannel(VegaSortChannel, Bool?)
    ByField(String, VegaSort?)
    Values(Array[
    Json
    ])
    Off
    } derive(Eq,
    Debug
    )

    A Vega-Lite channel sort, the complete schema union: Ascending / Descending (the bare orders), ByChannel (sort by another channel's values, the descending flag spelling the schema's -x forms), ByField (sort by a data field, optionally in a given order), Values (sort by an explicit list of the channel's values, in that order), and Off (null, which turns sorting off). pub(all) so callers can name the variants; build the Values form through VegaChannelSort::values, which copies the caller's array.

    VegaChannelSort::equal

    VegaChannelSort::not_equal

    fn VegaChannelSort::not_equal(x : VegaChannelSort, y : VegaChannelSort) -> Bool

    VegaChannelSort::values

    The Values form of a VegaChannelSort from a caller's array: the spec keeps its own copy, so an array the caller mutates afterwards cannot move a chart already built from it. Each element is a value of the sorted column — a number, a string, a boolean — as a Json leaf.

    VegaCompositionConfig

    pub struct VegaCompositionConfig {
    columns : Double?
    spacing : Double?
    } derive(Eq,
    Debug
    )

    The composition grid defaults: the wrap column count and the sub-view spacing.

    VegaCompositionConfig::VegaCompositionConfig

    fn VegaCompositionConfig::VegaCompositionConfig(columns? : Double, spacing? : Double) -> VegaCompositionConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaCompositionConfig::equal

    VegaCompositionConfig::not_equal

    VegaConcat

    pub struct VegaConcat {
    align : VegaAlignMode?
    bounds : VegaBounds?
    center : VegaCenter?
    spacing : VegaSpacing?
    columns : Double?
    title : VegaTitle?
    name : String?
    description : String?
    resolve : VegaResolve?
    // private fields
    } derive(Eq,
    Debug
    )

    A concatenated chart — VConcat stacks its children vertically, HConcat lays them out horizontally, and Concat wraps them into a grid with a columns count — plus the layout a concat spec carries (alignment, bounds, centering, spacing, the wrap column count) and the chrome (title, name, description, resolve). The children are copied at construction; read them back through concat, which copies again.

    VegaConcat::VegaConcat

    fn VegaConcat::VegaConcat(concat : Array[Chart], align? : VegaAlignMode, bounds? : VegaBounds, center? : VegaCenter, spacing? : VegaSpacing, columns? : Double, title? : VegaTitle, name? : String, description? : String, resolve? : VegaResolve, transform? : Array[VegaTransform]) -> VegaConcat

    Concatenate the given charts; the array is copied, the rest optional. columns is the wrap count of a Concat grid (a VConcat / HConcat ignores it — their direction fixes the layout).

    VegaConcat::concat

    fn VegaConcat::concat(self : VegaConcat) -> Array[Chart]

    The concatenated children, copied for the same reason.

    VegaConcat::equal

    fn VegaConcat::equal(VegaConcat, VegaConcat) -> Bool

    VegaConcat::not_equal

    fn VegaConcat::not_equal(x : VegaConcat, y : VegaConcat) -> Bool

    VegaCondition

    A conditional encoding arm: when the predicate holds, the channel shows the constant value — the highlight-on-hover shape, a base color with a brighter one for the hovered subset. The schema's condition for a mark-property channel carries exactly test (the predicate) and value (the constant); the base definition on the channel itself is the else. pub(all) so callers build the one variant.

    VegaCondition::equal

    VegaCondition::not_equal

    fn VegaCondition::not_equal(x : VegaCondition, y : VegaCondition) -> Bool

    VegaConfig

    pub struct VegaConfig {
    background : String?
    autosize : VegaAutoSize?
    padding : VegaPadding?
    font : String?
    count_title : String?
    field_title : String?
    aria : Bool?
    line_break : String?
    mark : VegaMarkStyle?
    bar : VegaMarkStyle?
    line : VegaMarkStyle?
    point : VegaMarkStyle?
    area : VegaMarkStyle?
    tick : VegaMarkStyle?
    rect : VegaMarkStyle?
    rule : VegaMarkStyle?
    circle : VegaMarkStyle?
    square : VegaMarkStyle?
    trail : VegaMarkStyle?
    text : VegaMarkStyle?
    image : VegaMarkStyle?
    arc : VegaMarkStyle?
    geoshape : VegaMarkStyle?
    boxplot : VegaBoxPlotConfig?
    errorbar : VegaErrorBarConfig?
    errorband : VegaErrorBandConfig?
    scale : VegaScaleConfig?
    axis : VegaAxis?
    axis_x : VegaAxis?
    axis_y : VegaAxis?
    axis_left : VegaAxis?
    axis_right : VegaAxis?
    axis_top : VegaAxis?
    axis_bottom : VegaAxis?
    axis_band : VegaAxis?
    axis_point : VegaAxis?
    axis_discrete : VegaAxis?
    axis_quantitative : VegaAxis?
    axis_temporal : VegaAxis?
    axis_x_band : VegaAxis?
    axis_x_discrete : VegaAxis?
    axis_x_point : VegaAxis?
    axis_x_quantitative : VegaAxis?
    axis_x_temporal : VegaAxis?
    axis_y_band : VegaAxis?
    axis_y_discrete : VegaAxis?
    axis_y_point : VegaAxis?
    axis_y_quantitative : VegaAxis?
    axis_y_temporal : VegaAxis?
    legend : VegaLegendConfig?
    header : VegaHeader?
    header_row : VegaHeader?
    header_column : VegaHeader?
    header_facet : VegaHeader?
    title : VegaTitleConfig?
    view : VegaViewConfig?
    projection : VegaProjection?
    selection : VegaSelectionConfig?
    range : VegaRangeConfig?
    concat : VegaCompositionConfig?
    facet : VegaCompositionConfig?
    locale : VegaLocaleConfig?
    number_format : String?
    number_format_type : String?
    normalized_number_format : String?
    normalized_number_format_type : String?
    time_format : String?
    time_format_type : String?
    tooltip_format : VegaFormatConfig?
    custom_format_types : Bool?
    // private fields
    } derive(Eq,
    Debug
    )

    A chart's theme: the per-mark style defaults, the scale / axis / legend / header / title defaults, the view frame, the named ranges and style index, the composition grid, the selection defaults, the locale and format defaults, and the top-level scalars (background, padding, autosize, font, countTitle, fieldTitle, aria, lineBreak). The legend and title blocks are the config hosts' own narrowed types (VegaLegendConfig, VegaTitleConfig) — the schema's LegendConfig / TitleConfig accept fewer keys than a channel legend or a spec title does, and the config types carry exactly those. Every property is optional; unset ones fall to the runtime's own defaults. The style index maps a style name to its mark-style block; the map is copied at construction and copied again on read.

    VegaConfig::VegaConfig

    fn VegaConfig::VegaConfig(background? : String, autosize? : VegaAutoSize, padding? : VegaPadding, font? : String, count_title? : String, field_title? : String, aria? : Bool, line_break? : String, params? : Array[
    Json
    ], mark? : VegaMarkStyle, bar? : VegaMarkStyle, line? : VegaMarkStyle, point? : VegaMarkStyle, area? : VegaMarkStyle, tick? : VegaMarkStyle, rect? : VegaMarkStyle, rule? : VegaMarkStyle, circle? : VegaMarkStyle, square? : VegaMarkStyle, trail? : VegaMarkStyle, text? : VegaMarkStyle, image? : VegaMarkStyle, arc? : VegaMarkStyle, geoshape? : VegaMarkStyle, boxplot? : VegaBoxPlotConfig, errorbar? : VegaErrorBarConfig, errorband? : VegaErrorBandConfig, scale? : VegaScaleConfig, axis? : VegaAxis, axis_x? : VegaAxis, axis_y? : VegaAxis, axis_left? : VegaAxis, axis_right? : VegaAxis, axis_top? : VegaAxis, axis_bottom? : VegaAxis, axis_band? : VegaAxis, axis_point? : VegaAxis, axis_discrete? : VegaAxis, axis_quantitative? : VegaAxis, axis_temporal? : VegaAxis, axis_x_band? : VegaAxis, axis_x_discrete? : VegaAxis, axis_x_point? : VegaAxis, axis_x_quantitative? : VegaAxis, axis_x_temporal? : VegaAxis, axis_y_band? : VegaAxis, axis_y_discrete? : VegaAxis, axis_y_point? : VegaAxis, axis_y_quantitative? : VegaAxis, axis_y_temporal? : VegaAxis, legend? : VegaLegendConfig, header? : VegaHeader, header_row? : VegaHeader, header_column? : VegaHeader, header_facet? : VegaHeader, title? : VegaTitleConfig, view? : VegaViewConfig, projection? : VegaProjection, selection? : VegaSelectionConfig, range? : VegaRangeConfig, style? : Map[String, VegaMarkStyle], concat? : VegaCompositionConfig, facet? : VegaCompositionConfig, locale? : VegaLocaleConfig, number_format? : String, number_format_type? : String, normalized_number_format? : String, normalized_number_format_type? : String, time_format? : String, time_format_type? : String, tooltip_format? : VegaFormatConfig, custom_format_types? : Bool) -> VegaConfig

    Build a theme; every property optional. The style index maps style names to their mark-style blocks, and is copied at construction.

    VegaConfig::equal

    fn VegaConfig::equal(VegaConfig, VegaConfig) -> Bool

    VegaConfig::not_equal

    fn VegaConfig::not_equal(x : VegaConfig, y : VegaConfig) -> Bool

    VegaConfig::params

    The params list, copied — reading the field itself would hand the caller the array the theme holds.

    VegaConfig::style

    fn VegaConfig::style(self : VegaConfig) -> Map[String, VegaMarkStyle]

    The style index, copied — reading the field itself would hand the caller the map the theme holds.

    VegaCursor

    pub(all) enum VegaCursor {
    Auto
    Default
    None
    ContextMenu
    Help
    Pointer
    Progress
    Wait
    Cell
    Crosshair
    Text
    VerticalText
    Alias
    Copy
    Move
    NoDrop
    NotAllowed
    EResize
    NResize
    NeResize
    NwResize
    SResize
    SeResize
    SwResize
    WResize
    EwResize
    NsResize
    NeswResize
    NwseResize
    ColResize
    RowResize
    AllScroll
    ZoomIn
    ZoomOut
    Grab
    Grabbing
    } derive(Eq,
    Debug
    )

    A CSS cursor name, one variant per schema value.

    VegaCursor::equal

    fn VegaCursor::equal(VegaCursor, VegaCursor) -> Bool

    VegaCursor::not_equal

    fn VegaCursor::not_equal(x : VegaCursor, y : VegaCursor) -> Bool

    VegaDensityTransform

    pub struct VegaDensityTransform {
    density : String
    bandwidth : Double?
    counts : Bool?
    cumulative : Bool?
    steps : Double?
    minsteps : Double?
    maxsteps : Double?
    resolve : VegaResolveMode?
    // private fields
    } derive(Eq,
    Debug
    )

    The density transform: a kernel density estimate over density, optionally grouped, cumulative, as counts, over an extent or a step budget, with multiple densities resolved independently or over a shared domain.

    VegaDensityTransform::VegaDensityTransform

    fn VegaDensityTransform::VegaDensityTransform(density~ : String, as_? : Array[String], bandwidth? : Double, counts? : Bool, cumulative? : Bool, extent? : Array[Double], groupby? : Array[String], steps? : Double, minsteps? : Double, maxsteps? : Double, resolve? : VegaResolveMode) -> VegaDensityTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaDensityTransform::as_

    fn VegaDensityTransform::as_(self : VegaDensityTransform) -> Array[String]?

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaDensityTransform::equal

    VegaDensityTransform::extent

    fn VegaDensityTransform::extent(self : VegaDensityTransform) -> Array[Double]?

    The extent list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaDensityTransform::groupby

    fn VegaDensityTransform::groupby(self : VegaDensityTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaDensityTransform::not_equal

    VegaDirection

    pub(all) enum VegaDirection {
    Horizontal
    Vertical
    } derive(Eq,
    Debug
    )

    A direction: horizontal or vertical.

    VegaDirection::equal

    VegaDirection::not_equal

    fn VegaDirection::not_equal(x : VegaDirection, y : VegaDirection) -> Bool

    VegaDiscreteSize

    pub(all) enum VegaDiscreteSize {
    Px(Double)
    Step(Double)
    } derive(Eq,
    Debug
    )

    The view frame's discrete default size: a fixed pixel count, or a per-category step. The config host has no responsive "container" form here (the schema's ViewConfig.discreteHeight / discreteWidth is a number or {"step": n} alone — "container" sizes a whole chart, not a per-step default), so this narrower type cannot spell one. pub(all) so callers can name the variants.

    VegaDiscreteSize::equal

    VegaDiscreteSize::not_equal

    fn VegaDiscreteSize::not_equal(x : VegaDiscreteSize, y : VegaDiscreteSize) -> Bool

    VegaDomain

    pub(all) enum VegaDomain {
    Values(Array[
    Json
    ])
    Unaggregated
    } derive(Eq,
    Debug
    )

    A scale domain: an explicit list of values, or the "unaggregated" marker (the data's own extent before aggregation).

    VegaDomain::equal

    fn VegaDomain::equal(VegaDomain, VegaDomain) -> Bool

    VegaDomain::not_equal

    fn VegaDomain::not_equal(x : VegaDomain, y : VegaDomain) -> Bool

    VegaErrorBandConfig

    pub struct VegaErrorBandConfig {
    extent :
    Json
    ?
    band : VegaMarkStyle?
    borders : VegaMarkStyle?
    interpolate : VegaMarkInterpolate?
    tension : Double?
    } derive(Eq,
    Debug
    )

    The errorband defaults: the extent, the band and border styles, the interpolation, and the tension.

    VegaErrorBandConfig::VegaErrorBandConfig

    fn VegaErrorBandConfig::VegaErrorBandConfig(extent? :
    Json
    , band? : VegaMarkStyle, borders? : VegaMarkStyle, interpolate? : VegaMarkInterpolate, tension? : Double) -> VegaErrorBandConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaErrorBandConfig::equal

    VegaErrorBandConfig::not_equal

    VegaErrorBarConfig

    pub struct VegaErrorBarConfig {
    extent :
    Json
    ?
    rule : VegaMarkStyle?
    ticks : VegaMarkStyle?
    size : Double?
    thickness : Double?
    } derive(Eq,
    Debug
    )

    The errorbar defaults: the extent, the rule and tick styles, and the sizes.

    VegaErrorBarConfig::VegaErrorBarConfig

    fn VegaErrorBarConfig::VegaErrorBarConfig(extent? :
    Json
    , rule? : VegaMarkStyle, ticks? : VegaMarkStyle, size? : Double, thickness? : Double) -> VegaErrorBarConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaErrorBarConfig::equal

    VegaErrorBarConfig::not_equal

    VegaExtent

    pub(all) enum VegaExtent {
    Px(Int)
    Container
    Step(Int)
    } derive(Eq,
    Debug
    )

    A top-level width / height: Px (a fixed number of pixels), Container ("container", responsive sizing — not combinable with row / column facet channels), and Step ({"step": n}, the size of one discrete step, so a discrete axis sizes itself by its category count). pub(all) so callers can name the variants in a constructor's width / height.

    VegaExtent::equal

    fn VegaExtent::equal(VegaExtent, VegaExtent) -> Bool

    VegaExtent::not_equal

    fn VegaExtent::not_equal(x : VegaExtent, y : VegaExtent) -> Bool

    VegaExtentTransform

    pub struct VegaExtentTransform {
    extent : String
    param : String
    } derive(Eq,
    Debug
    )

    The extent transform: the min / max of extent, bound to the named parameter (consumed by scales and brushes).

    VegaExtentTransform::VegaExtentTransform

    fn VegaExtentTransform::VegaExtentTransform(extent~ : String, param~ : String) -> VegaExtentTransform

    The extent transform: a column's min and max as a signal.

    VegaExtentTransform::equal

    VegaExtentTransform::not_equal

    VegaFacet

    pub struct VegaFacet {
    row : VegaFacetChannel?
    column : VegaFacetChannel?
    spec : Chart
    align : VegaAlignMode?
    bounds : VegaBounds?
    center : VegaCenter?
    spacing : VegaSpacing?
    columns : Double?
    title : VegaTitle?
    name : String?
    description : String?
    resolve : VegaResolve?
    // private fields
    } derive(Eq,
    Debug
    )

    A faceted chart: small multiples of the child spec, one per value of the row / column facet channels (a group-by drawn as a grid), plus the layout a facet spec carries and the chrome. The child renders against the same frame as the whole chart.

    VegaFacet::VegaFacet

    fn VegaFacet::VegaFacet(spec : Chart, row? : VegaFacetChannel, column? : VegaFacetChannel, align? : VegaAlignMode, bounds? : VegaBounds, center? : VegaCenter, spacing? : VegaSpacing, columns? : Double, title? : VegaTitle, name? : String, description? : String, resolve? : VegaResolve, transform? : Array[VegaTransform]) -> VegaFacet

    Facet the given child chart by a row and / or column channel; the rest of the layout and chrome is optional.

    VegaFacet::equal

    fn VegaFacet::equal(VegaFacet, VegaFacet) -> Bool

    VegaFacet::not_equal

    fn VegaFacet::not_equal(x : VegaFacet, y : VegaFacet) -> Bool

    VegaFacetChannel

    pub struct VegaFacetChannel {
    field : String?
    aggregate : VegaAggregate?
    bin : VegaBin?
    time_unit : VegaTimeUnit?
    sort : VegaChannelSort?
    type_override : VegaType?
    title : String?
    band_position : Double?
    header : VegaHeader?
    } derive(Eq,
    Debug
    )

    A facet channel definition, the schema's FacetFieldDef — the field a row / column facet groups by, with the aggregation / binning / time-unit / sorting modifiers of an encoding channel and the facet's own header. The grid-level alignment, centering, and spacing belong to the facet operator itself (VegaFacet), not to the channel — the schema's FacetFieldDef carries no such keys. The channel-host sort is narrower than an encoding channel's too: FacetFieldDef.sort has no bare-channel form, so a ByChannel sort raises InvalidOperation at emission (sort by a field or by an explicit order instead). Every property is optional; a facet channel without a field facets on nothing.

    VegaFacetChannel::VegaFacetChannel

    fn VegaFacetChannel::VegaFacetChannel(field? : String, aggregate? : VegaAggregate, bin? : VegaBin, time_unit? : VegaTimeUnit, sort? : VegaChannelSort, type_override? : VegaType, title? : String, band_position? : Double, header? : VegaHeader) -> VegaFacetChannel

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaFacetChannel::equal

    VegaFacetChannel::not_equal

    fn VegaFacetChannel::not_equal(x : VegaFacetChannel, y : VegaFacetChannel) -> Bool

    VegaFilterTransform

    pub struct VegaFilterTransform {
    filter : VegaPredicate
    } derive(Eq,
    Debug
    )

    The filter transform: keep the rows the predicate accepts.

    VegaFilterTransform::VegaFilterTransform

    fn VegaFilterTransform::VegaFilterTransform(filter~ : VegaPredicate) -> VegaFilterTransform

    The filter transform: keep the rows a predicate accepts.

    VegaFilterTransform::equal

    VegaFilterTransform::not_equal

    VegaFlattenTransform

    pub struct VegaFlattenTransform {
    // private fields
    } derive(Eq,
    Debug
    )

    The flatten transform: one row per element of the array fields, the outputs renamed.

    VegaFlattenTransform::VegaFlattenTransform

    fn VegaFlattenTransform::VegaFlattenTransform(flatten~ : Array[String], as_? : Array[String]) -> VegaFlattenTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaFlattenTransform::as_

    fn VegaFlattenTransform::as_(self : VegaFlattenTransform) -> Array[String]?

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaFlattenTransform::equal

    VegaFlattenTransform::flatten

    fn VegaFlattenTransform::flatten(self : VegaFlattenTransform) -> Array[String]

    The flatten list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaFlattenTransform::not_equal

    VegaFoldTransform

    pub struct VegaFoldTransform {
    // private fields
    } derive(Eq,
    Debug
    )

    The fold transform: the named columns gathered into a key / value pair (wide to long), the outputs renamed.

    VegaFoldTransform::VegaFoldTransform

    fn VegaFoldTransform::VegaFoldTransform(fold~ : Array[String], as_? : Array[String]) -> VegaFoldTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaFoldTransform::as_

    fn VegaFoldTransform::as_(self : VegaFoldTransform) -> Array[String]?

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaFoldTransform::equal

    VegaFoldTransform::fold

    fn VegaFoldTransform::fold(self : VegaFoldTransform) -> Array[String]

    The fold list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaFoldTransform::not_equal

    fn VegaFoldTransform::not_equal(x : VegaFoldTransform, y : VegaFoldTransform) -> Bool

    VegaFontWeight

    pub(all) enum VegaFontWeight {
    Normal
    Bold
    Lighter
    Bolder
    Weight(Int)
    } derive(Eq,
    Debug
    )

    A font weight: the four named weights or a numeric one (100–900).

    VegaFontWeight::equal

    VegaFontWeight::not_equal

    fn VegaFontWeight::not_equal(x : VegaFontWeight, y : VegaFontWeight) -> Bool

    VegaFormatConfig

    pub struct VegaFormatConfig {
    number_format : String?
    number_format_type : String?
    normalized_number_format : String?
    normalized_number_format_type : String?
    time_format : String?
    time_format_type : String?
    } derive(Eq,
    Debug
    )

    The default number / time format patterns and their format types.

    VegaFormatConfig::VegaFormatConfig

    fn VegaFormatConfig::VegaFormatConfig(number_format? : String, number_format_type? : String, normalized_number_format? : String, normalized_number_format_type? : String, time_format? : String, time_format_type? : String) -> VegaFormatConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaFormatConfig::equal

    VegaFormatConfig::not_equal

    fn VegaFormatConfig::not_equal(x : VegaFormatConfig, y : VegaFormatConfig) -> Bool

    VegaFrameLimit

    pub(all) enum VegaFrameLimit {
    Num(Double)
    Open
    } derive(Eq,
    Debug
    )

    One bound of a window frame: a row offset from the current row, or Open (the schema's null — the frame runs to the data's edge).

    VegaFrameLimit::equal

    VegaFrameLimit::not_equal

    fn VegaFrameLimit::not_equal(x : VegaFrameLimit, y : VegaFrameLimit) -> Bool

    VegaHeader

    pub struct VegaHeader {
    format : String?
    format_type : String?
    label_align : VegaAlign?
    label_anchor : VegaAnchor?
    label_angle : Double?
    label_baseline : VegaBaseline?
    label_color : String?
    label_expr : String?
    label_font : String?
    label_font_size : Double?
    label_font_style : String?
    label_font_weight : VegaFontWeight?
    label_limit : Double?
    label_line_height : Double?
    label_orient : VegaOrient?
    label_padding : Double?
    labels : Bool?
    orient : VegaOrient?
    title : String?
    title_align : VegaAlign?
    title_anchor : VegaAnchor?
    title_angle : Double?
    title_baseline : VegaBaseline?
    title_color : String?
    title_font : String?
    title_font_size : Double?
    title_font_style : String?
    title_font_weight : VegaFontWeight?
    title_limit : Double?
    title_line_height : Double?
    title_orient : VegaOrient?
    title_padding : Double?
    } derive(Eq,
    Debug
    )

    A facet header, the schema's Header in static form — the facet labels and the facet title, each styled (font, size, weight, color, alignment, angle, orientation, padding), a label expression, and whether labels draw at all. Every property is optional; unset ones fall to the header config's defaults.

    VegaHeader::VegaHeader

    fn VegaHeader::VegaHeader(format? : String, format_type? : String, label_align? : VegaAlign, label_anchor? : VegaAnchor, label_angle? : Double, label_baseline? : VegaBaseline, label_color? : String, label_expr? : String, label_font? : String, label_font_size? : Double, label_font_style? : String, label_font_weight? : VegaFontWeight, label_limit? : Double, label_line_height? : Double, label_orient? : VegaOrient, label_padding? : Double, labels? : Bool, orient? : VegaOrient, title? : String, title_align? : VegaAlign, title_anchor? : VegaAnchor, title_angle? : Double, title_baseline? : VegaBaseline, title_color? : String, title_font? : String, title_font_size? : Double, title_font_style? : String, title_font_weight? : VegaFontWeight, title_limit? : Double, title_line_height? : Double, title_orient? : VegaOrient, title_padding? : Double) -> VegaHeader

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaHeader::equal

    fn VegaHeader::equal(VegaHeader, VegaHeader) -> Bool

    VegaHeader::not_equal

    fn VegaHeader::not_equal(x : VegaHeader, y : VegaHeader) -> Bool

    VegaImputeMethod

    pub(all) enum VegaImputeMethod {
    Value
    Median
    Max
    Min
    Mean
    } derive(Eq,
    Debug
    )

    An imputation method, the schema's ImputeMethod enum: Value → "value" (the constant value property, the default), Median → "median", Max → "max", Min → "min", Mean → "mean". pub(all) so callers can name the variants.

    VegaImputeMethod::equal

    VegaImputeMethod::not_equal

    fn VegaImputeMethod::not_equal(x : VegaImputeMethod, y : VegaImputeMethod) -> Bool

    VegaImputeSequence

    pub struct VegaImputeSequence {
    start : Double?
    stop : Double
    step : Double?
    } derive(Eq,
    Debug
    )

    A generated key sequence to impute over: a start, a stop, and a step.

    VegaImputeSequence::VegaImputeSequence

    fn VegaImputeSequence::VegaImputeSequence(stop~ : Double, start? : Double, step? : Double) -> VegaImputeSequence

    The sequence of imputation values for the impute transform.

    VegaImputeSequence::equal

    VegaImputeSequence::not_equal

    VegaImputeTransform

    pub struct VegaImputeTransform {
    impute : String
    key : String
    keyvals_sequence : VegaImputeSequence?
    method_ : VegaImputeMethod?
    value :
    Json
    ?
    // private fields
    } derive(Eq,
    Debug
    )

    The impute transform: fill missing impute values, keyed by key, with a method or a constant, over a frame or a generated sequence, optionally per group.

    VegaImputeTransform::VegaImputeTransform

    fn VegaImputeTransform::VegaImputeTransform(impute~ : String, key~ : String, keyvals? : Array[
    Json
    ], keyvals_sequence? : VegaImputeSequence, method_? : VegaImputeMethod, value? :
    Json
    , groupby? : Array[String], frame? : Array[Double]) -> VegaImputeTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaImputeTransform::equal

    VegaImputeTransform::frame

    fn VegaImputeTransform::frame(self : VegaImputeTransform) -> Array[Double]?

    The frame list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaImputeTransform::groupby

    fn VegaImputeTransform::groupby(self : VegaImputeTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaImputeTransform::keyvals

    The keyvals list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaImputeTransform::not_equal

    VegaInterpolate

    pub(all) enum VegaInterpolate {
    Kind(VegaInterpolateKind)
    Params(VegaInterpolateParams)
    } derive(Eq,
    Debug
    )

    A scale interpolation: a named kind, or an rgb / cubehelix interpolation with a gamma.

    VegaInterpolate::equal

    VegaInterpolate::not_equal

    fn VegaInterpolate::not_equal(x : VegaInterpolate, y : VegaInterpolate) -> Bool

    VegaInterpolateKind

    pub(all) enum VegaInterpolateKind {
    Rgb
    Lab
    Hcl
    Hsl
    Hsl_long
    Hcl_long
    Cubehelix
    Cubehelix_long
    } derive(Eq,
    Debug
    )

    A color interpolation, one variant per schema value.

    VegaInterpolateKind::equal

    VegaInterpolateKind::not_equal

    VegaInterpolateParamType

    pub(all) enum VegaInterpolateParamType {
    Rgb
    Cubehelix
    Cubehelix_long
    } derive(Eq,
    Debug
    )

    The interpolation kinds the parameter form may name — the schema's ScaleInterpolateParams.type enum, narrower than the named kinds (VegaInterpolateKind): the parameter form carries the gamma-carrying rgb and cubehelix interpolations alone. pub(all) so callers can name the variants.

    VegaInterpolateParamType::equal

    VegaInterpolateParamType::not_equal

    VegaInterpolateParams

    pub struct VegaInterpolateParams {
    type_ : VegaInterpolateParamType
    gamma : Double?
    } derive(Eq,
    Debug
    )

    The parameter form of an rgb / cubehelix interpolation: the kind (required — the schema's ScaleInterpolateParams demands its type) and a gamma.

    VegaInterpolateParams::VegaInterpolateParams

    fn VegaInterpolateParams::VegaInterpolateParams(type_~ : VegaInterpolateParamType, gamma? : Double) -> VegaInterpolateParams

    Build one: the interpolation kind is required (an emission without one is a spec the schema would reject), the gamma optional.

    VegaInterpolateParams::equal

    VegaInterpolateParams::not_equal

    VegaIntervalSelect

    pub struct VegaIntervalSelect {
    on : String?
    clear : String?
    translate : String?
    zoom : String?
    mark : VegaBrush?
    resolve : VegaSelectionResolution?
    // private fields
    } derive(Eq,
    Debug
    )

    An interval selection: a continuous range drawn by drag, with panning and zooming, and the brush it draws styled.

    VegaIntervalSelect::VegaIntervalSelect

    fn VegaIntervalSelect::VegaIntervalSelect(on? : String, clear? : String, translate? : String, zoom? : String, mark? : VegaBrush, fields? : Array[String], encodings? : Array[String], resolve? : VegaSelectionResolution) -> VegaIntervalSelect

    Build an interval selection; the event names are Vega event-stream strings, every property optional. The array properties are copied.

    VegaIntervalSelect::encodings

    fn VegaIntervalSelect::encodings(self : VegaIntervalSelect) -> Array[String]?

    The projected encoding channels, copied.

    VegaIntervalSelect::equal

    VegaIntervalSelect::fields

    fn VegaIntervalSelect::fields(self : VegaIntervalSelect) -> Array[String]?

    The projected fields, copied.

    VegaIntervalSelect::not_equal

    VegaJoin

    pub(all) enum VegaJoin {
    Miter
    Round
    Bevel
    } derive(Eq,
    Debug
    )

    A stroke join: miter, round, or bevel.

    VegaJoin::equal

    fn VegaJoin::equal(VegaJoin, VegaJoin) -> Bool

    VegaJoin::not_equal

    fn VegaJoin::not_equal(x : VegaJoin, y : VegaJoin) -> Bool

    VegaJoin::to_repr

    VegaJoinAggregateTransform

    pub struct VegaJoinAggregateTransform {
    // private fields
    } derive(Eq,
    Debug
    )

    The join-aggregate transform: aggregate over the whole frame (or groups), the results joined onto every row.

    VegaJoinAggregateTransform::VegaJoinAggregateTransform

    fn VegaJoinAggregateTransform::VegaJoinAggregateTransform(joinaggregate~ : Array[VegaAggField], groupby? : Array[String]) -> VegaJoinAggregateTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaJoinAggregateTransform::equal

    VegaJoinAggregateTransform::groupby

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaJoinAggregateTransform::joinaggregate

    The joinaggregate list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaJoinAggregateTransform::not_equal

    VegaLabelBound

    pub(all) enum VegaLabelBound {
    Bool(Bool)
    Amount(Double)
    Flush
    } derive(Eq,
    Debug
    )

    A label-bound culling setting: the boolean, a pixel radius, or Flush (flush only).

    VegaLabelBound::equal

    VegaLabelBound::not_equal

    fn VegaLabelBound::not_equal(x : VegaLabelBound, y : VegaLabelBound) -> Bool

    VegaLabelFlush

    pub(all) enum VegaLabelFlush {
    Bool(Bool)
    Amount(Double)
    } derive(Eq,
    Debug
    )

    A label-flush setting: the boolean, or a pixel alignment threshold.

    VegaLabelFlush::equal

    VegaLabelFlush::not_equal

    fn VegaLabelFlush::not_equal(x : VegaLabelFlush, y : VegaLabelFlush) -> Bool

    VegaLabelOverlap

    pub(all) enum VegaLabelOverlap {
    Bool(Bool)
    Parity
    Greedy
    } derive(Eq,
    Debug
    )

    A label-overlap strategy: the boolean of the default greedy mode, or a named one.

    VegaLabelOverlap::equal

    VegaLabelOverlap::not_equal

    fn VegaLabelOverlap::not_equal(x : VegaLabelOverlap, y : VegaLabelOverlap) -> Bool

    VegaLayer

    pub struct VegaLayer {
    title : VegaTitle?
    name : String?
    description : String?
    width : VegaExtent?
    height : VegaExtent?
    view : VegaViewBackground?
    projection : VegaProjection?
    resolve : VegaResolve?
    // private fields
    } derive(Eq,
    Debug
    )

    A layered chart: one layer array of child charts drawn in the same coordinate system (a line over its points, a rule over the bars), plus the chrome a layer spec carries — title, name, description, width / height, the view background, a projection, and the resolve block. The children are copied at construction, so an array the caller mutates afterwards cannot move a chart already built; read them back through layer, which copies again.

    VegaLayer::VegaLayer

    fn VegaLayer::VegaLayer(layer : Array[Chart], title? : VegaTitle, name? : String, description? : String, width? : VegaExtent, height? : VegaExtent, view? : VegaViewBackground, projection? : VegaProjection, resolve? : VegaResolve, transform? : Array[VegaTransform]) -> VegaLayer

    Layer the given charts, one over the next in order, sharing the frame the top-level call inlines. The array is copied; the rest optional.

    VegaLayer::equal

    fn VegaLayer::equal(VegaLayer, VegaLayer) -> Bool

    VegaLayer::layer

    fn VegaLayer::layer(self : VegaLayer) -> Array[Chart]

    The layered children, copied — reading the field itself would hand the caller the array the chart holds.

    VegaLayer::not_equal

    fn VegaLayer::not_equal(x : VegaLayer, y : VegaLayer) -> Bool

    VegaLayoutAlign

    pub(all) enum VegaLayoutAlign {
    All
    Each
    None
    } derive(Eq,
    Debug
    )

    A grid alignment for legends and titles: all, each, or none.

    VegaLayoutAlign::equal

    VegaLayoutAlign::not_equal

    fn VegaLayoutAlign::not_equal(x : VegaLayoutAlign, y : VegaLayoutAlign) -> Bool

    VegaLegend

    pub struct VegaLegend {
    aria : Bool?
    clip_height : Double?
    column_padding : Double?
    columns : Double?
    corner_radius : Double?
    description : String?
    direction : VegaDirection?
    fill_color : String?
    format : String?
    format_type : String?
    gradient_length : Double?
    gradient_opacity : Double?
    gradient_stroke_color : String?
    gradient_stroke_width : Double?
    gradient_thickness : Double?
    grid_align : VegaLayoutAlign?
    label_align : VegaAlign?
    label_baseline : VegaBaseline?
    label_color : String?
    label_expr : String?
    label_font : String?
    label_font_size : Double?
    label_font_style : String?
    label_font_weight : VegaFontWeight?
    label_limit : Double?
    label_offset : Double?
    label_opacity : Double?
    label_overlap : VegaLabelOverlap?
    label_padding : Double?
    label_separation : Double?
    legend_x : Double?
    legend_y : Double?
    offset : Double?
    orient : VegaLegendOrient?
    padding : Double?
    row_padding : Double?
    stroke_color : String?
    symbol_dash_offset : Double?
    symbol_fill_color : String?
    symbol_limit : Double?
    symbol_offset : Double?
    symbol_opacity : Double?
    symbol_size : Double?
    symbol_stroke_color : String?
    symbol_stroke_width : Double?
    symbol_type : String?
    tick_count : VegaTickInterval?
    tick_min_step : Double?
    title : String?
    title_align : VegaAlign?
    title_anchor : VegaAnchor?
    title_baseline : VegaBaseline?
    title_color : String?
    title_font : String?
    title_font_size : Double?
    title_font_style : String?
    title_font_weight : VegaFontWeight?
    title_limit : Double?
    title_line_height : Double?
    title_opacity : Double?
    title_orient : VegaTitleOrient?
    title_padding : Double?
    type_ : VegaLegendType?
    zindex : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    A legend definition for a mark-property channel, the schema's Legend in full static form — discrete symbols or a continuous gradient, the gradient and symbol geometry, the label and title styling, the orientation (a side or a corner), explicit values, and a legend grid (columns, paddings, alignment). symbol_type stays a free String by the schema's own choice: its SymbolShape is an unenumerated string, because a custom SVG path (a path string, not a name) is a legal symbol — an enum here would reject what the format accepts. Every property is optional; unset ones fall to the runtime's defaults. The array-carrying ones (symbol_dash, values) are copied at construction and copied again on read.

    VegaLegend::VegaLegend

    fn VegaLegend::VegaLegend(aria? : Bool, clip_height? : Double, column_padding? : Double, columns? : Double, corner_radius? : Double, description? : String, direction? : VegaDirection, fill_color? : String, format? : String, format_type? : String, gradient_length? : Double, gradient_opacity? : Double, gradient_stroke_color? : String, gradient_stroke_width? : Double, gradient_thickness? : Double, grid_align? : VegaLayoutAlign, label_align? : VegaAlign, label_baseline? : VegaBaseline, label_color? : String, label_expr? : String, label_font? : String, label_font_size? : Double, label_font_style? : String, label_font_weight? : VegaFontWeight, label_limit? : Double, label_offset? : Double, label_opacity? : Double, label_overlap? : VegaLabelOverlap, label_padding? : Double, label_separation? : Double, legend_x? : Double, legend_y? : Double, offset? : Double, orient? : VegaLegendOrient, padding? : Double, row_padding? : Double, stroke_color? : String, symbol_dash? : Array[Double], symbol_dash_offset? : Double, symbol_fill_color? : String, symbol_limit? : Double, symbol_offset? : Double, symbol_opacity? : Double, symbol_size? : Double, symbol_stroke_color? : String, symbol_stroke_width? : Double, symbol_type? : String, tick_count? : VegaTickInterval, tick_min_step? : Double, title? : String, title_align? : VegaAlign, title_anchor? : VegaAnchor, title_baseline? : VegaBaseline, title_color? : String, title_font? : String, title_font_size? : Double, title_font_style? : String, title_font_weight? : VegaFontWeight, title_limit? : Double, title_line_height? : Double, title_opacity? : Double, title_orient? : VegaTitleOrient, title_padding? : Double, type_? : VegaLegendType, values? : Array[
    Json
    ], zindex? : Double) -> VegaLegend

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaLegend::equal

    fn VegaLegend::equal(VegaLegend, VegaLegend) -> Bool

    VegaLegend::not_equal

    fn VegaLegend::not_equal(x : VegaLegend, y : VegaLegend) -> Bool

    VegaLegend::symbol_dash

    fn VegaLegend::symbol_dash(self : VegaLegend) -> Array[Double]?

    The symbol_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaLegend::values

    The values values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaLegendConfig

    pub struct VegaLegendConfig {
    aria : Bool?
    clip_height : Double?
    column_padding : Double?
    columns : Double?
    corner_radius : Double?
    description : String?
    direction : VegaDirection?
    fill_color : String?
    gradient_length : Double?
    gradient_opacity : Double?
    gradient_stroke_color : String?
    gradient_stroke_width : Double?
    gradient_thickness : Double?
    grid_align : VegaLayoutAlign?
    label_align : VegaAlign?
    label_baseline : VegaBaseline?
    label_color : String?
    label_font : String?
    label_font_size : Double?
    label_font_style : String?
    label_font_weight : VegaFontWeight?
    label_limit : Double?
    label_offset : Double?
    label_opacity : Double?
    label_overlap : VegaLabelOverlap?
    label_padding : Double?
    label_separation : Double?
    legend_x : Double?
    legend_y : Double?
    offset : Double?
    orient : VegaLegendOrient?
    padding : Double?
    row_padding : Double?
    stroke_color : String?
    symbol_dash_offset : Double?
    symbol_fill_color : String?
    symbol_limit : Double?
    symbol_offset : Double?
    symbol_opacity : Double?
    symbol_size : Double?
    symbol_stroke_color : String?
    symbol_stroke_width : Double?
    symbol_type : String?
    tick_count : VegaTickInterval?
    title : String?
    title_align : VegaAlign?
    title_anchor : VegaAnchor?
    title_baseline : VegaBaseline?
    title_color : String?
    title_font : String?
    title_font_size : Double?
    title_font_style : String?
    title_font_weight : VegaFontWeight?
    title_limit : Double?
    title_line_height : Double?
    title_opacity : Double?
    title_orient : VegaTitleOrient?
    title_padding : Double?
    zindex : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    The config-side legend defaults, the schema's LegendConfig — the intersection of VegaLegend (the channel legend) with the keys the config host accepts. A legend configured through a channel may name the format it renders (format / formatType), rewrite its labels (labelExpr), pin its tick floor (tickMinStep), pick its kind (type), and list its entries (values); the config default may do none of those — those keys do not exist on LegendConfig, so the config type does not carry them and a caller cannot set them here. Every property is optional; unset ones fall to the runtime's defaults. The symbol_dash array is copied at construction and copied again on read.

    VegaLegendConfig::VegaLegendConfig

    fn VegaLegendConfig::VegaLegendConfig(aria? : Bool, clip_height? : Double, column_padding? : Double, columns? : Double, corner_radius? : Double, description? : String, direction? : VegaDirection, fill_color? : String, gradient_length? : Double, gradient_opacity? : Double, gradient_stroke_color? : String, gradient_stroke_width? : Double, gradient_thickness? : Double, grid_align? : VegaLayoutAlign, label_align? : VegaAlign, label_baseline? : VegaBaseline, label_color? : String, label_font? : String, label_font_size? : Double, label_font_style? : String, label_font_weight? : VegaFontWeight, label_limit? : Double, label_offset? : Double, label_opacity? : Double, label_overlap? : VegaLabelOverlap, label_padding? : Double, label_separation? : Double, legend_x? : Double, legend_y? : Double, offset? : Double, orient? : VegaLegendOrient, padding? : Double, row_padding? : Double, stroke_color? : String, symbol_dash? : Array[Double], symbol_dash_offset? : Double, symbol_fill_color? : String, symbol_limit? : Double, symbol_offset? : Double, symbol_opacity? : Double, symbol_size? : Double, symbol_stroke_color? : String, symbol_stroke_width? : Double, symbol_type? : String, tick_count? : VegaTickInterval, title? : String, title_align? : VegaAlign, title_anchor? : VegaAnchor, title_baseline? : VegaBaseline, title_color? : String, title_font? : String, title_font_size? : Double, title_font_style? : String, title_font_weight? : VegaFontWeight, title_limit? : Double, title_line_height? : Double, title_opacity? : Double, title_orient? : VegaTitleOrient, title_padding? : Double, zindex? : Double) -> VegaLegendConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaLegendConfig::equal

    VegaLegendConfig::not_equal

    fn VegaLegendConfig::not_equal(x : VegaLegendConfig, y : VegaLegendConfig) -> Bool

    VegaLegendConfig::symbol_dash

    fn VegaLegendConfig::symbol_dash(self : VegaLegendConfig) -> Array[Double]?

    The symbol_dash values, copied — reading the field itself would hand the caller the array the config holds.

    VegaLegendOrient

    pub(all) enum VegaLegendOrient {
    None
    Left
    Right
    Top
    Bottom
    TopLeft
    TopRight
    BottomLeft
    BottomRight
    } derive(Eq,
    Debug
    )

    A legend orientation: a side or a corner (or None, no legend).

    VegaLegendOrient::equal

    VegaLegendOrient::not_equal

    fn VegaLegendOrient::not_equal(x : VegaLegendOrient, y : VegaLegendOrient) -> Bool

    VegaLegendRef

    pub(all) enum VegaLegendRef {
    Off
    Config(VegaLegend)
    } derive(Eq,
    Debug
    )

    A mark-property channel's legend: a configuration, or Off (the schema's null, which removes the legend).

    VegaLegendRef::equal

    VegaLegendRef::not_equal

    fn VegaLegendRef::not_equal(x : VegaLegendRef, y : VegaLegendRef) -> Bool

    VegaLegendResolve

    pub struct VegaLegendResolve {
    color : VegaResolveMode?
    fill : VegaResolveMode?
    stroke : VegaResolveMode?
    opacity : VegaResolveMode?
    fill_opacity : VegaResolveMode?
    stroke_opacity : VegaResolveMode?
    stroke_width : VegaResolveMode?
    stroke_dash : VegaResolveMode?
    size : VegaResolveMode?
    shape : VegaResolveMode?
    angle : VegaResolveMode?
    } derive(Eq,
    Debug
    )

    The legend-resolution block of a composition: which mark-property channels share one legend across sub-views.

    VegaLegendResolve::VegaLegendResolve

    fn VegaLegendResolve::VegaLegendResolve(color? : VegaResolveMode, fill? : VegaResolveMode, stroke? : VegaResolveMode, opacity? : VegaResolveMode, fill_opacity? : VegaResolveMode, stroke_opacity? : VegaResolveMode, stroke_width? : VegaResolveMode, stroke_dash? : VegaResolveMode, size? : VegaResolveMode, shape? : VegaResolveMode, angle? : VegaResolveMode) -> VegaLegendResolve

    Build a per-channel legend-resolution block; every channel optional.

    VegaLegendResolve::equal

    VegaLegendResolve::not_equal

    fn VegaLegendResolve::not_equal(x : VegaLegendResolve, y : VegaLegendResolve) -> Bool

    VegaLegendType

    pub(all) enum VegaLegendType {
    Symbol
    Gradient
    } derive(Eq,
    Debug
    )

    A legend type: discrete symbols or a continuous gradient.

    VegaLegendType::equal

    VegaLegendType::not_equal

    fn VegaLegendType::not_equal(x : VegaLegendType, y : VegaLegendType) -> Bool

    VegaLocaleConfig

    The number / time formatting locales, as the locale definition objects the runtime consumes.

    VegaLocaleConfig::VegaLocaleConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaLocaleConfig::equal

    VegaLocaleConfig::not_equal

    fn VegaLocaleConfig::not_equal(x : VegaLocaleConfig, y : VegaLocaleConfig) -> Bool

    VegaLoessTransform

    pub struct VegaLoessTransform {
    loess : String
    on : String
    bandwidth : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    The loess transform: a locally-estimated scatterplot smoothing of loess against on, optionally grouped, with a bandwidth.

    VegaLoessTransform::VegaLoessTransform

    fn VegaLoessTransform::VegaLoessTransform(loess~ : String, on~ : String, as_? : Array[String], bandwidth? : Double, groupby? : Array[String]) -> VegaLoessTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaLoessTransform::as_

    fn VegaLoessTransform::as_(self : VegaLoessTransform) -> Array[String]?

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaLoessTransform::equal

    VegaLoessTransform::groupby

    fn VegaLoessTransform::groupby(self : VegaLoessTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaLoessTransform::not_equal

    VegaLookupData

    pub struct VegaLookupData {
    data : String
    key : String
    // private fields
    } derive(Eq,
    Debug
    )

    The lookup table side: a named data source, its key field, and the fields to bring in (all, when unset).

    VegaLookupData::VegaLookupData

    fn VegaLookupData::VegaLookupData(data~ : String, key~ : String, fields? : Array[String]) -> VegaLookupData

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaLookupData::equal

    VegaLookupData::fields

    fn VegaLookupData::fields(self : VegaLookupData) -> Array[String]?

    The fields list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaLookupData::not_equal

    fn VegaLookupData::not_equal(x : VegaLookupData, y : VegaLookupData) -> Bool

    VegaLookupFrom

    pub(all) enum VegaLookupFrom {
    Data(VegaLookupData)
    Param(String, String)
    } derive(Eq,
    Debug
    )

    The lookup source: a named data table, or a parameter-driven selection (the schema's LookupSelection, whose key and param are both required — the Param payload carries the two as (key, param): the field in the data to look up, and the selection parameter name to look up against).

    VegaLookupFrom::equal

    VegaLookupFrom::not_equal

    fn VegaLookupFrom::not_equal(x : VegaLookupFrom, y : VegaLookupFrom) -> Bool

    VegaLookupTransform

    pub struct VegaLookupTransform {
    lookup : String
    from_ : VegaLookupFrom
    as_ : VegaAsField?
    default :
    Json
    ?
    } derive(Eq,
    Debug
    )

    The lookup transform: enrich each row from another data source (a named table, or a parameter-driven selection), keyed by lookup.

    VegaLookupTransform::VegaLookupTransform

    fn VegaLookupTransform::VegaLookupTransform(lookup~ : String, from_~ : VegaLookupFrom, as_? : VegaAsField, default? :
    Json
    ) -> VegaLookupTransform

    The lookup transform: join a secondary table onto the rows by key.

    VegaLookupTransform::equal

    VegaLookupTransform::not_equal

    VegaMarkInterpolate

    pub(all) enum VegaMarkInterpolate {
    Basis
    BasisOpen
    BasisClosed
    Bundle
    Cardinal
    CardinalOpen
    CardinalClosed
    CatmullRom
    Linear
    LinearClosed
    Monotone
    Natural
    Step
    StepBefore
    StepAfter
    } derive(Eq,
    Debug
    )

    The line / area interpolation method, the schema's Interpolate enum — one variant per value, so a method the schema does not list fails compilation here rather than shipping as a plausible string. pub(all) so callers can name the variants in a mark style's interpolate.

    VegaMarkInterpolate::equal

    VegaMarkInterpolate::not_equal

    VegaMarkStyle

    pub struct VegaMarkStyle {
    align : VegaAlign?
    angle : Double?
    aria : Bool?
    aria_role : String?
    aria_role_description : String?
    aspect : Bool?
    baseline : VegaBaseline?
    blend : String?
    color : String?
    corner_radius : Double?
    corner_radius_bottom_left : Double?
    corner_radius_bottom_right : Double?
    corner_radius_top_left : Double?
    corner_radius_top_right : Double?
    cursor : VegaCursor?
    description : String?
    dir : String?
    dx : Double?
    dy : Double?
    ellipsis : String?
    end_angle : Double?
    fill : String?
    fill_opacity : Double?
    filled : Bool?
    font : String?
    font_size : Double?
    font_style : String?
    font_weight : VegaFontWeight?
    height : Double?
    href : String?
    inner_radius : Double?
    interpolate : VegaMarkInterpolate?
    invalid : String?
    limit : Double?
    line : Bool?
    line_break : String?
    line_height : Double?
    opacity : Double?
    order : Bool?
    orient : VegaOrient?
    outer_radius : Double?
    pad_angle : Double?
    point : String?
    radius : Double?
    radius2 : Double?
    shape : String?
    size : Double?
    smooth : Bool?
    start_angle : Double?
    stroke : String?
    stroke_cap : VegaCap?
    stroke_dash_offset : Double?
    stroke_join : VegaJoin?
    stroke_miter_limit : Double?
    stroke_offset : Double?
    stroke_opacity : Double?
    stroke_width : Double?
    tension : Double?
    text : String?
    theta : Double?
    theta2 : Double?
    time : Double?
    time_unit_band_position : Double?
    time_unit_band_size : Double?
    tooltip :
    Json
    ?
    url : String?
    width : Double?
    x :
    Json
    ?
    x2 :
    Json
    ?
    y :
    Json
    ?
    y2 :
    Json
    ?
    bin_spacing : Double?
    continuous_band_size : Double?
    discrete_band_size : Double?
    band_size : Double?
    min_band_size : Double?
    thickness : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    A mark-style block: the shared MarkConfig base with the per-mark extras (a bar's binSpacing and band sizes, a tick's thickness, the line / point toggles) folded in. config.mark, every per-mark block (config.bar … config.trail), the composite-mark sub-parts (a boxplot's box and median, an errorbar's rule and ticks), and config.style entries all take this one struct — a property the schema accepts for one mark but not another is the runtime's to reject, not the type's. Every property is optional; the strokeDash array is copied at construction and copied again on read.

    VegaMarkStyle::VegaMarkStyle

    fn VegaMarkStyle::VegaMarkStyle(align? : VegaAlign, angle? : Double, aria? : Bool, aria_role? : String, aria_role_description? : String, aspect? : Bool, baseline? : VegaBaseline, blend? : String, color? : String, corner_radius? : Double, corner_radius_bottom_left? : Double, corner_radius_bottom_right? : Double, corner_radius_top_left? : Double, corner_radius_top_right? : Double, cursor? : VegaCursor, description? : String, dir? : String, dx? : Double, dy? : Double, ellipsis? : String, end_angle? : Double, fill? : String, fill_opacity? : Double, filled? : Bool, font? : String, font_size? : Double, font_style? : String, font_weight? : VegaFontWeight, height? : Double, href? : String, inner_radius? : Double, interpolate? : VegaMarkInterpolate, invalid? : String, limit? : Double, line? : Bool, line_break? : String, line_height? : Double, opacity? : Double, order? : Bool, orient? : VegaOrient, outer_radius? : Double, pad_angle? : Double, point? : String, radius? : Double, radius2? : Double, shape? : String, size? : Double, smooth? : Bool, start_angle? : Double, stroke? : String, stroke_cap? : VegaCap, stroke_dash? : Array[Double], stroke_dash_offset? : Double, stroke_join? : VegaJoin, stroke_miter_limit? : Double, stroke_offset? : Double, stroke_opacity? : Double, stroke_width? : Double, tension? : Double, text? : String, theta? : Double, theta2? : Double, time? : Double, time_unit_band_position? : Double, time_unit_band_size? : Double, tooltip? :
    Json
    , url? : String, width? : Double, x? :
    Json
    , x2? :
    Json
    , y? :
    Json
    , y2? :
    Json
    , bin_spacing? : Double, continuous_band_size? : Double, discrete_band_size? : Double, band_size? : Double, min_band_size? : Double, thickness? : Double) -> VegaMarkStyle

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaMarkStyle::equal

    VegaMarkStyle::not_equal

    fn VegaMarkStyle::not_equal(x : VegaMarkStyle, y : VegaMarkStyle) -> Bool

    VegaMarkStyle::stroke_dash

    fn VegaMarkStyle::stroke_dash(self : VegaMarkStyle) -> Array[Double]?

    The stroke_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaNice

    pub(all) enum VegaNice {
    Bool(Bool)
    Ticks(Double)
    Interval(VegaTimeInterval)
    Step(VegaTimeInterval, Double)
    } derive(Eq,
    Debug
    )

    A nice-domain setting: the boolean, a tick count, a calendar interval, or an interval with a step multiplier.

    VegaNice::equal

    fn VegaNice::equal(VegaNice, VegaNice) -> Bool

    VegaNice::not_equal

    fn VegaNice::not_equal(x : VegaNice, y : VegaNice) -> Bool

    VegaNice::to_repr

    VegaOrient

    pub(all) enum VegaOrient {
    Left
    Right
    Top
    Bottom
    } derive(Eq,
    Debug
    )

    A side: Left → "left", Right → "right", Top → "top", Bottom → "bottom" (a header's orientation and title side).

    VegaOrient::equal

    fn VegaOrient::equal(VegaOrient, VegaOrient) -> Bool

    VegaOrient::not_equal

    fn VegaOrient::not_equal(x : VegaOrient, y : VegaOrient) -> Bool

    VegaPadding

    pub(all) enum VegaPadding {
    Px(Int)
    Sides(VegaSides)
    } derive(Eq,
    Debug
    )

    A top-level padding: Px (the same number on all four sides) or Sides (per-side values, the sides unset left to the runtime's default). pub(all) so callers can name the variants.

    VegaPadding::equal

    fn VegaPadding::equal(VegaPadding, VegaPadding) -> Bool

    VegaPadding::not_equal

    fn VegaPadding::not_equal(x : VegaPadding, y : VegaPadding) -> Bool

    VegaParam

    pub(all) enum VegaParam {
    Variable(VegaVariableParam)
    Selection(VegaSelectionParam)
    } derive(Eq,
    Debug
    )

    A parameter a chart declares: a variable (a value, bound to a widget or driven by an expression) or a selection (direct manipulation). pub(all) so callers build the two variants through the named builders below.

    VegaParam::equal

    fn VegaParam::equal(VegaParam, VegaParam) -> Bool

    VegaParam::not_equal

    fn VegaParam::not_equal(x : VegaParam, y : VegaParam) -> Bool

    VegaPivotTransform

    pub struct VegaPivotTransform {
    pivot : String
    value : String
    limit : Double?
    op : VegaAggregate?
    // private fields
    } derive(Eq,
    Debug
    )

    The pivot transform: long to wide — one column per value of pivot, holding value aggregated by op.

    VegaPivotTransform::VegaPivotTransform

    fn VegaPivotTransform::VegaPivotTransform(pivot~ : String, value~ : String, groupby? : Array[String], limit? : Double, op? : VegaAggregate) -> VegaPivotTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaPivotTransform::equal

    VegaPivotTransform::groupby

    fn VegaPivotTransform::groupby(self : VegaPivotTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaPivotTransform::not_equal

    VegaPointSelect

    pub struct VegaPointSelect {
    on : String?
    clear : String?
    nearest : Bool?
    toggle : Bool?
    resolve : VegaSelectionResolution?
    // private fields
    } derive(Eq,
    Debug
    )

    A point selection: discrete values picked by click (shift-click toggling), projected onto the given fields or encoding channels.

    VegaPointSelect::VegaPointSelect

    fn VegaPointSelect::VegaPointSelect(on? : String, clear? : String, fields? : Array[String], encodings? : Array[String], nearest? : Bool, toggle? : Bool, resolve? : VegaSelectionResolution) -> VegaPointSelect

    Build a point selection; the event names are Vega event-stream strings, every property optional. The array properties are copied.

    VegaPointSelect::encodings

    fn VegaPointSelect::encodings(self : VegaPointSelect) -> Array[String]?

    The projected encoding channels, copied.

    VegaPointSelect::equal

    VegaPointSelect::fields

    fn VegaPointSelect::fields(self : VegaPointSelect) -> Array[String]?

    The projected fields, copied.

    VegaPointSelect::not_equal

    fn VegaPointSelect::not_equal(x : VegaPointSelect, y : VegaPointSelect) -> Bool

    VegaPredicate

    pub(all) enum VegaPredicate {
    Expr(String)
    Param(String)
    Equal(String,
    Json
    , VegaTimeUnit?)
    Lt(String,
    Json
    , VegaTimeUnit?)
    Lte(String,
    Json
    , VegaTimeUnit?)
    Gt(String,
    Json
    , VegaTimeUnit?)
    Gte(String,
    Json
    , VegaTimeUnit?)
    Range(String, (Double, Double), VegaTimeUnit?)
    OneOf(String, Array[
    Json
    ], VegaTimeUnit?)
    Valid(String, Bool, VegaTimeUnit?)
    Not(VegaPredicate)
    And(Array[VegaPredicate])
    Or(Array[VegaPredicate])
    } derive(Eq,
    Debug
    )

    A filter predicate, the schema's PredicateComposition: a Vega expression string (Expr — passed through verbatim), a parameter reference (Param — a brush or input widget, by name), a field comparison (Equal / Lt / Lte / Gt / Gte with a Json bound — the schema allows a number, a string, or a DateTime object there, matching Equal's bound; Range with a number pair; OneOf with a value list; Valid with a flag — each with an optional timeUnit truncation), or a composition of predicates (Not / And / Or). pub(all) so callers build the variants; the array-carrying ones take copies at the builder functions.

    VegaPredicate::all_of

    fn VegaPredicate::all_of(predicates : Array[VegaPredicate]) -> VegaPredicate

    The and composition from a caller's predicate list, copied.

    VegaPredicate::any_of

    fn VegaPredicate::any_of(predicates : Array[VegaPredicate]) -> VegaPredicate

    The or composition from a caller's predicate list, copied.

    VegaPredicate::equal

    VegaPredicate::not_equal

    fn VegaPredicate::not_equal(x : VegaPredicate, y : VegaPredicate) -> Bool

    VegaPredicate::one_of

    fn VegaPredicate::one_of(field : String, values : Array[
    Json
    ], time_unit? : VegaTimeUnit) -> VegaPredicate

    The oneOf predicate from a caller's value list: the spec keeps its own copy, so an array the caller mutates afterwards cannot move a chart already built.

    VegaProjection

    pub struct VegaProjection {
    type_ : VegaProjectionType?
    center : (Double, Double)?
    clip_angle : Double?
    clip_extent : ((Double, Double), (Double, Double))?
    coefficient : Double?
    distance : Double?
    extent : ((Double, Double), (Double, Double))?
    fraction : Double?
    lobes : Double?
    parallel : Double?
    point_radius : Double?
    precision : Double?
    radius : Double?
    ratio : Double?
    reflect_x : Bool?
    reflect_y : Bool?
    rotate : VegaRotate?
    scale : Double?
    size : (Double, Double)?
    spacing : Double?
    tilt : Double?
    translate : (Double, Double)?
    // private fields
    } derive(Eq,
    Debug
    )

    A geographic projection for geoshape marks and latitude / longitude channels, the schema's Projection in static form — the projection type (Mercator, Albers, …), the center / translate / scale / rotate geometry, clip angles and extents, and the per-type numeric parameters (a conic's parallels, an Azimuthal's coefficient). Every property is optional; unset ones fall to the projection's own defaults. The parallels array is copied at construction and copied again on read.

    VegaProjection::VegaProjection

    fn VegaProjection::VegaProjection(type_? : VegaProjectionType, center? : (Double, Double), clip_angle? : Double, clip_extent? : ((Double, Double), (Double, Double)), coefficient? : Double, distance? : Double, extent? : ((Double, Double), (Double, Double)), fraction? : Double, lobes? : Double, parallel? : Double, parallels? : Array[Double], point_radius? : Double, precision? : Double, radius? : Double, ratio? : Double, reflect_x? : Bool, reflect_y? : Bool, rotate? : VegaRotate, scale? : Double, size? : (Double, Double), spacing? : Double, tilt? : Double, translate? : (Double, Double)) -> VegaProjection

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaProjection::equal

    VegaProjection::not_equal

    fn VegaProjection::not_equal(x : VegaProjection, y : VegaProjection) -> Bool

    VegaProjection::parallels

    fn VegaProjection::parallels(self : VegaProjection) -> Array[Double]?

    The parallels values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaProjectionType

    pub(all) enum VegaProjectionType {
    Albers
    AlbersUsa
    AzimuthalEqualArea
    AzimuthalEquidistant
    ConicConformal
    ConicEqualArea
    ConicEquidistant
    EqualEarth
    Equirectangular
    Gnomonic
    Identity
    Mercator
    NaturalEarth1
    Orthographic
    Stereographic
    TransverseMercator
    } derive(Eq,
    Debug
    )

    A map projection, one variant per schema value.

    VegaProjectionType::equal

    VegaProjectionType::not_equal

    VegaQuantileTransform

    pub struct VegaQuantileTransform {
    quantile : String
    step : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    The quantile transform: the quantile values of quantile, over a probability list or a step grid.

    VegaQuantileTransform::VegaQuantileTransform

    fn VegaQuantileTransform::VegaQuantileTransform(quantile~ : String, as_? : Array[String], probs? : Array[Double], step? : Double, groupby? : Array[String]) -> VegaQuantileTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaQuantileTransform::as_

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaQuantileTransform::equal

    VegaQuantileTransform::groupby

    fn VegaQuantileTransform::groupby(self : VegaQuantileTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaQuantileTransform::not_equal

    VegaQuantileTransform::probs

    fn VegaQuantileTransform::probs(self : VegaQuantileTransform) -> Array[Double]?

    The probs list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaRadioSelectInput

    pub(all) enum VegaRadioSelectInput {
    Radio
    Select
    } derive(Eq,
    Debug
    )

    The widget a radio / select binding renders, the schema's BindRadioSelect.input enum: Radio → "radio" (a radio group, the default an unset input emits) and Select → "select" (a dropdown). A dedicated enum rather than a String because the schema lists exactly these two — the same cohesion VegaInterpolateParamType gives a narrower schema enum — and rather than reusing a wider input type because no other widget's input is constrained to two arms. pub(all) so callers can name the variants.

    VegaRadioSelectInput::equal

    VegaRadioSelectInput::not_equal

    VegaRange

    A scale range: a named one or an explicit list of values.

    VegaRange::equal

    fn VegaRange::equal(VegaRange, VegaRange) -> Bool

    VegaRange::not_equal

    fn VegaRange::not_equal(x : VegaRange, y : VegaRange) -> Bool

    VegaRangeBound

    pub(all) enum VegaRangeBound {
    Number(Double)
    Named(String)
    } derive(Eq,
    Debug
    )

    A range endpoint: a number or a named value (a discrete scale's named range).

    VegaRangeBound::equal

    VegaRangeBound::not_equal

    fn VegaRangeBound::not_equal(x : VegaRangeBound, y : VegaRangeBound) -> Bool

    VegaRangeConfig

    pub struct VegaRangeConfig {
    // private fields
    } derive(Eq,
    Debug
    )

    The named ranges: the color lists the category / ordinal / ramp / diverging / heatmap range names resolve to, and the symbol shapes. The lists are copied at construction and copied again on read.

    VegaRangeConfig::VegaRangeConfig

    fn VegaRangeConfig::VegaRangeConfig(category? : Array[String], ordinal? : Array[String], ramp? : Array[String], diverging? : Array[String], heatmap? : Array[String], symbol? : Array[String]) -> VegaRangeConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaRangeConfig::category

    fn VegaRangeConfig::category(self : VegaRangeConfig) -> Array[String]?

    The category color list, copied.

    VegaRangeConfig::diverging

    fn VegaRangeConfig::diverging(self : VegaRangeConfig) -> Array[String]?

    The diverging color list, copied.

    VegaRangeConfig::equal

    VegaRangeConfig::heatmap

    fn VegaRangeConfig::heatmap(self : VegaRangeConfig) -> Array[String]?

    The heatmap color list, copied.

    VegaRangeConfig::not_equal

    fn VegaRangeConfig::not_equal(x : VegaRangeConfig, y : VegaRangeConfig) -> Bool

    VegaRangeConfig::ordinal

    fn VegaRangeConfig::ordinal(self : VegaRangeConfig) -> Array[String]?

    The ordinal color list, copied.

    VegaRangeConfig::ramp

    fn VegaRangeConfig::ramp(self : VegaRangeConfig) -> Array[String]?

    The ramp color list, copied.

    VegaRangeConfig::symbol

    fn VegaRangeConfig::symbol(self : VegaRangeConfig) -> Array[String]?

    The symbol list, copied.

    VegaRangeName

    pub(all) enum VegaRangeName {
    Width
    Height
    Symbol
    Category
    Ordinal
    Ramp
    Diverging
    Heatmap
    } derive(Eq,
    Debug
    )

    A named range: width, height, symbol, category, ordinal, ramp, diverging, or heatmap.

    VegaRangeName::equal

    VegaRangeName::not_equal

    fn VegaRangeName::not_equal(x : VegaRangeName, y : VegaRangeName) -> Bool

    VegaRegressionMethod

    pub(all) enum VegaRegressionMethod {
    Linear
    Log
    Exp
    Pow
    Quad
    Poly
    } derive(Eq,
    Debug
    )

    A regression model's functional form, the RegressionTransform.method enum: Linear → "linear" (the default), Log → "log", Exp → "exp", Pow → "pow", Quad → "quad", and Poly → "poly" (whose order the transform's order property names). pub(all) so callers can name the variants.

    VegaRegressionMethod::equal

    VegaRegressionMethod::not_equal

    VegaRegressionTransform

    pub struct VegaRegressionTransform {
    regression : String
    on : String
    method_ : VegaRegressionMethod?
    order : Double?
    params : Bool?
    // private fields
    } derive(Eq,
    Debug
    )

    The regression transform: fit regression against on (linear, poly, exp, log, pow, or quad), optionally grouped, over an extent, keeping the model parameters.

    VegaRegressionTransform::VegaRegressionTransform

    fn VegaRegressionTransform::VegaRegressionTransform(regression~ : String, on~ : String, as_? : Array[String], extent? : Array[Double], method_? : VegaRegressionMethod, order? : Double, groupby? : Array[String], params? : Bool) -> VegaRegressionTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaRegressionTransform::as_

    The as_ list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaRegressionTransform::equal

    VegaRegressionTransform::extent

    The extent list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaRegressionTransform::groupby

    fn VegaRegressionTransform::groupby(self : VegaRegressionTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaRegressionTransform::not_equal

    VegaRepeat

    pub struct VegaRepeat {
    spec : Chart
    align : VegaAlignMode?
    bounds : VegaBounds?
    center : VegaCenter?
    spacing : VegaSpacing?
    columns : Double?
    title : VegaTitle?
    name : String?
    description : String?
    resolve : VegaResolve?
    // private fields
    } derive(Eq,
    Debug
    )

    A repeated chart: the child spec re-rendered once per field of the row and / or column field lists (the same mark over many columns, no encoding change needed), plus the layout and chrome. The field lists are copied at construction; read them back through row / column, which copy again.

    VegaRepeat::VegaRepeat

    fn VegaRepeat::VegaRepeat(spec : Chart, row? : Array[String], column? : Array[String], align? : VegaAlignMode, bounds? : VegaBounds, center? : VegaCenter, spacing? : VegaSpacing, columns? : Double, title? : VegaTitle, name? : String, description? : String, resolve? : VegaResolve, transform? : Array[VegaTransform]) -> VegaRepeat

    Repeat the given child chart over row and / or column field lists; the arrays are copied, the rest of the layout optional.

    VegaRepeat::column

    fn VegaRepeat::column(self : VegaRepeat) -> Array[String]?

    The repeated-over column fields, copied.

    VegaRepeat::equal

    fn VegaRepeat::equal(VegaRepeat, VegaRepeat) -> Bool

    VegaRepeat::not_equal

    fn VegaRepeat::not_equal(x : VegaRepeat, y : VegaRepeat) -> Bool

    VegaRepeat::row

    fn VegaRepeat::row(self : VegaRepeat) -> Array[String]?

    The repeated-over row fields, copied.

    VegaRepeatRef

    pub(all) enum VegaRepeatRef {
    Row
    Column
    } derive(Eq,
    Debug
    )

    A reference to a repeat variable — the placeholder a child spec inside a Repeat composition names where a plain field reference would name a column: Row → {"repeat": "row"}, Column → {"repeat": "column"}. The schema's RepeatRef enum also lists "repeat" and "layer", which belong to hosts this mirror does not build (a wrapped repeat-of-concats and a layer-level field spec), so the two variants here are the reachable set. pub(all) so callers can name the variants; a channel carrying one is built with VegaChannel::repeat.

    VegaRepeatRef::equal

    VegaRepeatRef::not_equal

    fn VegaRepeatRef::not_equal(x : VegaRepeatRef, y : VegaRepeatRef) -> Bool

    VegaResolve

    pub struct VegaResolve {
    scale : VegaScaleResolve?
    axis : VegaAxisResolve?
    legend : VegaLegendResolve?
    } derive(Eq,
    Debug
    )

    A composition's resolve block: scale, axis, and legend resolution.

    VegaResolve::VegaResolve

    fn VegaResolve::VegaResolve(scale? : VegaScaleResolve, axis? : VegaAxisResolve, legend? : VegaLegendResolve) -> VegaResolve

    Build a resolve block; each half optional.

    VegaResolve::equal

    fn VegaResolve::equal(VegaResolve, VegaResolve) -> Bool

    VegaResolve::not_equal

    fn VegaResolve::not_equal(x : VegaResolve, y : VegaResolve) -> Bool

    VegaResolveMode

    pub(all) enum VegaResolveMode {
    Independent
    Shared
    } derive(Eq,
    Debug
    )

    A resolve mode: Independent → "independent" (each sub-view its own) and Shared → "shared" (one for the composition). pub(all) so callers can name the variants inside a resolve map.

    VegaResolveMode::equal

    VegaResolveMode::not_equal

    fn VegaResolveMode::not_equal(x : VegaResolveMode, y : VegaResolveMode) -> Bool

    VegaRotate

    pub(all) enum VegaRotate {
    LonLat(Double, Double)
    LonLatRoll(Double, Double, Double)
    } derive(Eq,
    Debug
    )

    A projection rotation: longitude / latitude, or with a roll angle as the third value.

    VegaRotate::equal

    fn VegaRotate::equal(VegaRotate, VegaRotate) -> Bool

    VegaRotate::not_equal

    fn VegaRotate::not_equal(x : VegaRotate, y : VegaRotate) -> Bool

    VegaRowColAlign

    pub struct VegaRowColAlign {
    row : VegaLayoutAlign?
    column : VegaLayoutAlign?
    } derive(Eq,
    Debug
    )

    A per-side alignment.

    VegaRowColAlign::VegaRowColAlign

    fn VegaRowColAlign::VegaRowColAlign(row? : VegaLayoutAlign, column? : VegaLayoutAlign) -> VegaRowColAlign

    A per-side alignment.

    VegaRowColAlign::equal

    VegaRowColAlign::not_equal

    fn VegaRowColAlign::not_equal(x : VegaRowColAlign, y : VegaRowColAlign) -> Bool

    VegaRowColBool

    pub struct VegaRowColBool {
    row : Bool?
    column : Bool?
    } derive(Eq,
    Debug
    )

    A per-side boolean (a centering flag).

    VegaRowColBool::VegaRowColBool

    fn VegaRowColBool::VegaRowColBool(row? : Bool, column? : Bool) -> VegaRowColBool

    A per-side centering flag.

    VegaRowColBool::equal

    VegaRowColBool::not_equal

    fn VegaRowColBool::not_equal(x : VegaRowColBool, y : VegaRowColBool) -> Bool

    VegaRowColDouble

    pub struct VegaRowColDouble {
    row : Double?
    column : Double?
    } derive(Eq,
    Debug
    )

    A side setting for one value: row, column, or both.

    VegaRowColDouble::VegaRowColDouble

    fn VegaRowColDouble::VegaRowColDouble(row? : Double, column? : Double) -> VegaRowColDouble

    A per-side spacing.

    VegaRowColDouble::equal

    VegaRowColDouble::not_equal

    fn VegaRowColDouble::not_equal(x : VegaRowColDouble, y : VegaRowColDouble) -> Bool

    VegaSampleTransform

    pub struct VegaSampleTransform {
    sample : Double
    } derive(Eq,
    Debug
    )

    The sample transform: draw sample rows from the frame.

    VegaSampleTransform::VegaSampleTransform

    fn VegaSampleTransform::VegaSampleTransform(sample~ : Double) -> VegaSampleTransform

    The sample transform: a random or targeted row sample.

    VegaSampleTransform::equal

    VegaSampleTransform::not_equal

    VegaScale

    pub struct VegaScale {
    type_ : VegaScaleType?
    domain : VegaDomain?
    domain_min : Double?
    domain_max : Double?
    domain_mid : Double?
    range : VegaRange?
    range_min : VegaRangeBound?
    range_max : VegaRangeBound?
    scheme : VegaScheme?
    reverse : Bool?
    round : Bool?
    clamp : Bool?
    zero : Bool?
    exponent : Double?
    base : Double?
    constant : Double?
    interpolate : VegaInterpolate?
    nice : VegaNice?
    align : Double?
    padding : Double?
    padding_inner : Double?
    padding_outer : Double?
    bins : VegaBins?
    } derive(Eq,
    Debug
    )

    A scale definition, the schema's Scale in full static form: the type (a log y-axis, a band x-axis), the domain (explicit values or the unaggregated marker), the range (named or explicit), a color scheme with its extent / count parameters, niceness (a boolean, a tick count, or a calendar interval with a step), interpolation, zero / clamp / reverse / round, the numeric-typed extras (an exponent, a log base, a symlog constant), the band geometry (align, paddings), and explicit bins. Each property is optional; unset ones fall to the runtime's defaults. The array-carrying ones (domain values, range values, bins values) are copied at construction and copied again on read.

    VegaScale::VegaScale

    fn VegaScale::VegaScale(type_? : VegaScaleType, domain? : VegaDomain, domain_min? : Double, domain_max? : Double, domain_mid? : Double, range? : VegaRange, range_min? : VegaRangeBound, range_max? : VegaRangeBound, scheme? : VegaScheme, reverse? : Bool, round? : Bool, clamp? : Bool, zero? : Bool, exponent? : Double, base? : Double, constant? : Double, interpolate? : VegaInterpolate, nice? : VegaNice, align? : Double, padding? : Double, padding_inner? : Double, padding_outer? : Double, bins? : VegaBins) -> VegaScale

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaScale::equal

    fn VegaScale::equal(VegaScale, VegaScale) -> Bool

    VegaScale::not_equal

    fn VegaScale::not_equal(x : VegaScale, y : VegaScale) -> Bool

    VegaScaleConfig

    pub struct VegaScaleConfig {
    animation_duration : Double?
    band_padding_inner : Double?
    band_padding_outer : Double?
    band_with_nested_offset_padding_inner : Double?
    band_with_nested_offset_padding_outer : Double?
    bar_band_padding_inner : Double?
    clamp : Bool?
    continuous_padding : Double?
    frames_per_second : Double?
    invalid : Bool?
    max_band_size : Double?
    max_font_size : Double?
    max_opacity : Double?
    max_size : Double?
    max_stroke_width : Double?
    min_band_size : Double?
    min_font_size : Double?
    min_opacity : Double?
    min_size : Double?
    min_stroke_width : Double?
    offset_band_padding_inner : Double?
    offset_band_padding_outer : Double?
    point_padding : Double?
    quantile_count : Double?
    quantize_count : Double?
    rect_band_padding_inner : Double?
    round : Bool?
    tick_band_padding_inner : Double?
    use_unaggregated_domain : Bool?
    x_reverse : Bool?
    zero : Bool?
    } derive(Eq,
    Debug
    )

    The scale engine's defaults: padding and size ranges per mark family, the min / max clamps the runtime applies when a scale's range is unspecified, rounding, and animation hints.

    VegaScaleConfig::VegaScaleConfig

    fn VegaScaleConfig::VegaScaleConfig(animation_duration? : Double, band_padding_inner? : Double, band_padding_outer? : Double, band_with_nested_offset_padding_inner? : Double, band_with_nested_offset_padding_outer? : Double, bar_band_padding_inner? : Double, clamp? : Bool, continuous_padding? : Double, frames_per_second? : Double, invalid? : Bool, max_band_size? : Double, max_font_size? : Double, max_opacity? : Double, max_size? : Double, max_stroke_width? : Double, min_band_size? : Double, min_font_size? : Double, min_opacity? : Double, min_size? : Double, min_stroke_width? : Double, offset_band_padding_inner? : Double, offset_band_padding_outer? : Double, point_padding? : Double, quantile_count? : Double, quantize_count? : Double, rect_band_padding_inner? : Double, round? : Bool, tick_band_padding_inner? : Double, use_unaggregated_domain? : Bool, x_reverse? : Bool, zero? : Bool) -> VegaScaleConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaScaleConfig::equal

    VegaScaleConfig::not_equal

    fn VegaScaleConfig::not_equal(x : VegaScaleConfig, y : VegaScaleConfig) -> Bool

    VegaScaleRef

    pub(all) enum VegaScaleRef {
    Off
    Config(VegaScale)
    } derive(Eq,
    Debug
    )

    A channel's scale: a configuration, or Off (the schema's null, which removes the scale and plots values as given).

    VegaScaleRef::equal

    VegaScaleRef::not_equal

    fn VegaScaleRef::not_equal(x : VegaScaleRef, y : VegaScaleRef) -> Bool

    VegaScaleResolve

    pub struct VegaScaleResolve {
    x : VegaResolveMode?
    y : VegaResolveMode?
    color : VegaResolveMode?
    fill : VegaResolveMode?
    stroke : VegaResolveMode?
    opacity : VegaResolveMode?
    fill_opacity : VegaResolveMode?
    stroke_opacity : VegaResolveMode?
    stroke_width : VegaResolveMode?
    stroke_dash : VegaResolveMode?
    size : VegaResolveMode?
    shape : VegaResolveMode?
    angle : VegaResolveMode?
    theta : VegaResolveMode?
    radius : VegaResolveMode?
    x_offset : VegaResolveMode?
    y_offset : VegaResolveMode?
    } derive(Eq,
    Debug
    )

    The scale-resolution block of a composition: which channels resolve independently and which share one scale, per channel. A channel left unset follows the composition's default.

    VegaScaleResolve::VegaScaleResolve

    fn VegaScaleResolve::VegaScaleResolve(x? : VegaResolveMode, y? : VegaResolveMode, color? : VegaResolveMode, fill? : VegaResolveMode, stroke? : VegaResolveMode, opacity? : VegaResolveMode, fill_opacity? : VegaResolveMode, stroke_opacity? : VegaResolveMode, stroke_width? : VegaResolveMode, stroke_dash? : VegaResolveMode, size? : VegaResolveMode, shape? : VegaResolveMode, angle? : VegaResolveMode, theta? : VegaResolveMode, radius? : VegaResolveMode, x_offset? : VegaResolveMode, y_offset? : VegaResolveMode) -> VegaScaleResolve

    Build a per-channel scale-resolution block; every channel optional.

    VegaScaleResolve::equal

    VegaScaleResolve::not_equal

    fn VegaScaleResolve::not_equal(x : VegaScaleResolve, y : VegaScaleResolve) -> Bool

    VegaScaleType

    pub(all) enum VegaScaleType {
    Linear
    Log
    Pow
    Sqrt
    Symlog
    Identity
    Sequential
    Time
    Utc
    Quantile
    Quantize
    Threshold
    Bin_ordinal
    Ordinal
    Point
    Band
    } derive(Eq,
    Debug
    )

    A scale type, one variant per schema value.

    VegaScaleType::equal

    VegaScaleType::not_equal

    fn VegaScaleType::not_equal(x : VegaScaleType, y : VegaScaleType) -> Bool

    VegaScheme

    pub(all) enum VegaScheme {
    Name(String)
    Params(VegaSchemeParams)
    } derive(Eq,
    Debug
    )

    A color scheme: its name, or the parameter form with extent / count.

    VegaScheme::equal

    fn VegaScheme::equal(VegaScheme, VegaScheme) -> Bool

    VegaScheme::not_equal

    fn VegaScheme::not_equal(x : VegaScheme, y : VegaScheme) -> Bool

    VegaSchemeParams

    pub struct VegaSchemeParams {
    name : String
    count : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    The parameter form of a color scheme: the scheme's name (required — the schema's SchemeParams demands it), an extent pair into a diverging scheme, and a color count for discrete ones. The extent array is copied at construction and copied again on read.

    VegaSchemeParams::VegaSchemeParams

    fn VegaSchemeParams::VegaSchemeParams(name~ : String, extent? : Array[Double], count? : Double) -> VegaSchemeParams

    Build one: the scheme's name is required (an emission without one is a spec the schema would reject — the same rule VegaInterpolateParams applies to its type), the extent array is copied, and the count is optional.

    VegaSchemeParams::equal

    VegaSchemeParams::extent

    fn VegaSchemeParams::extent(self : VegaSchemeParams) -> Array[Double]?

    The extent values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaSchemeParams::not_equal

    fn VegaSchemeParams::not_equal(x : VegaSchemeParams, y : VegaSchemeParams) -> Bool

    VegaSelect

    pub(all) enum VegaSelect {
    Point(VegaPointSelect)
    Interval(VegaIntervalSelect)
    } derive(Eq,
    Debug
    )

    A selection's interactive trigger: a point or an interval.

    VegaSelect::equal

    fn VegaSelect::equal(VegaSelect, VegaSelect) -> Bool

    VegaSelect::not_equal

    fn VegaSelect::not_equal(x : VegaSelect, y : VegaSelect) -> Bool

    VegaSelectionConfig

    pub struct VegaSelectionConfig {
    point : VegaPointSelect?
    interval : VegaIntervalSelect?
    } derive(Eq,
    Debug
    )

    The selection defaults: a point and / or interval trigger whose properties every selection of that kind inherits.

    VegaSelectionConfig::VegaSelectionConfig

    fn VegaSelectionConfig::VegaSelectionConfig(point? : VegaPointSelect, interval? : VegaIntervalSelect) -> VegaSelectionConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaSelectionConfig::equal

    VegaSelectionConfig::not_equal

    VegaSelectionParam

    pub struct VegaSelectionParam {
    name : String
    select : VegaSelect
    bind : VegaBind?
    // private fields
    } derive(Eq,
    Debug
    )

    A selection parameter: a named direct-manipulation selection — the click-drawn points or the drag-drawn interval — optionally bound to a widget (legend-style interval binding) and initialised.

    VegaSelectionParam::VegaSelectionParam

    fn VegaSelectionParam::VegaSelectionParam(name~ : String, select~ : VegaSelect, bind? : VegaBind, value? : Array[
    Json
    ], views? : Array[String]) -> VegaSelectionParam

    Build a selection parameter: the name, the trigger, and any binding, initial value (per projected field), or facet views it spans — the views key belongs to the top-level parameter form alone, so a parameter emitted inside a nested child spec drops it. The array properties are copied.

    VegaSelectionParam::equal

    VegaSelectionParam::not_equal

    VegaSelectionParam::value

    The initial selection, copied.

    VegaSelectionParam::views

    fn VegaSelectionParam::views(self : VegaSelectionParam) -> Array[String]?

    The facet views the selection spans, copied.

    VegaSelectionResolution

    pub(all) enum VegaSelectionResolution {
    Global
    Union
    Intersect
    } derive(Eq,
    Debug
    )

    How a selection composed across facets resolves: Global (one selection across all views, the default), Union (per-view, unioned on read), Intersect (per-view, intersected).

    VegaSelectionResolution::equal

    VegaSelectionResolution::not_equal

    VegaSides

    pub struct VegaSides {
    top : Int?
    right : Int?
    bottom : Int?
    left : Int?
    } derive(Eq,
    Debug
    )

    The per-side half of a VegaPadding; build one through the same-named constructor with any of the four sides named.

    VegaSides::VegaSides

    fn VegaSides::VegaSides(top? : Int, right? : Int, bottom? : Int, left? : Int) -> VegaSides

    Per-side padding with any of the four sides named.

    VegaSides::equal

    fn VegaSides::equal(VegaSides, VegaSides) -> Bool

    VegaSides::not_equal

    fn VegaSides::not_equal(x : VegaSides, y : VegaSides) -> Bool

    VegaSort

    pub(all) enum VegaSort {
    Ascending
    Descending
    } derive(Eq,
    Debug
    )

    A sort order: Ascending → "ascending", Descending → "descending". The order half of a VegaChannelSort's by-field form; a bare order is also a complete sort on its own. pub(all) so callers can name the variants.

    VegaSort::equal

    fn VegaSort::equal(VegaSort, VegaSort) -> Bool

    VegaSort::not_equal

    fn VegaSort::not_equal(x : VegaSort, y : VegaSort) -> Bool

    VegaSort::to_repr

    VegaSortChannel

    pub(all) enum VegaSortChannel {
    X
    Y
    Color
    Fill
    Stroke
    StrokeWidth
    Size
    Shape
    FillOpacity
    StrokeOpacity
    Opacity
    Text
    } derive(Eq,
    Debug
    )

    A channel another channel's sort may be keyed on — the schema's SortByChannel list ("x" … "-text"): X → "x", Color → "color", FillOpacity → "fillOpacity", Text → "text", and so on through the twelve. pub(all) so callers can name the variant inside a VegaChannelSort.

    VegaSortChannel::equal

    VegaSortChannel::not_equal

    fn VegaSortChannel::not_equal(x : VegaSortChannel, y : VegaSortChannel) -> Bool

    VegaSortField

    pub struct VegaSortField {
    field : String
    order : VegaSort?
    } derive(Eq,
    Debug
    )

    One sort key: the field, and whether it sorts descending.

    VegaSortField::VegaSortField

    fn VegaSortField::VegaSortField(field~ : String, order? : VegaSort) -> VegaSortField

    One sort field: the column, its order, and the optional bin it sorts within.

    VegaSortField::equal

    VegaSortField::not_equal

    fn VegaSortField::not_equal(x : VegaSortField, y : VegaSortField) -> Bool

    VegaSpacing

    pub(all) enum VegaSpacing {
    Px(Double)
    Sides(VegaRowColDouble)
    } derive(Eq,
    Debug
    )

    A composition's sub-view spacing: one number, or per-side values.

    VegaSpacing::equal

    fn VegaSpacing::equal(VegaSpacing, VegaSpacing) -> Bool

    VegaSpacing::not_equal

    fn VegaSpacing::not_equal(x : VegaSpacing, y : VegaSpacing) -> Bool

    VegaStack

    pub(all) enum VegaStack {
    Zero
    Center
    Normalize
    Off
    } derive(Eq,
    Debug
    )

    A Vega-Lite position-channel stack for stacked bar / area: Zero → "zero" (baseline stacking, the default when a mark stacks), Center → "center", Normalize → "normalize" (each stack rescaled to full height), and Off (null, which turns stacking off — the layered form). pub(all) so callers can name the variants.

    VegaStack::equal

    fn VegaStack::equal(VegaStack, VegaStack) -> Bool

    VegaStack::not_equal

    fn VegaStack::not_equal(x : VegaStack, y : VegaStack) -> Bool

    VegaStackOffset

    pub(all) enum VegaStackOffset {
    Zero
    Center
    Normalize
    } derive(Eq,
    Debug
    )

    A stack-transform offset, the schema's StackOffset enum: Zero → "zero" (stack from 0, the default), Center → "center" (center the stacks), Normalize → "normalize" (each stack rescaled to percentages). A dedicated enum rather than the channel VegaStack because the transform's enum has no null arm — Off there would be a variant this emitter could never place in a spec the schema accepts. pub(all) so callers can name the variants.

    VegaStackOffset::equal

    VegaStackOffset::not_equal

    fn VegaStackOffset::not_equal(x : VegaStackOffset, y : VegaStackOffset) -> Bool

    VegaStackTransform

    pub struct VegaStackTransform {
    stack : String
    as_ : VegaAsField
    offset : VegaStackOffset?
    // private fields
    } derive(Eq,
    Debug
    )

    The stack transform: stack stack end to end within groups, sorted, offset (zero, center, or normalize), writing the start / end pair.

    VegaStackTransform::VegaStackTransform

    fn VegaStackTransform::VegaStackTransform(stack~ : String, groupby~ : Array[String], as_~ : VegaAsField, offset? : VegaStackOffset, sort? : Array[VegaSortField]) -> VegaStackTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaStackTransform::equal

    VegaStackTransform::groupby

    fn VegaStackTransform::groupby(self : VegaStackTransform) -> Array[String]

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaStackTransform::not_equal

    VegaStackTransform::sort

    The sort list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaTickBand

    pub(all) enum VegaTickBand {
    Center
    Extent
    } derive(Eq,
    Debug
    )

    A tick band strategy for banded axes: center or extent.

    VegaTickBand::equal

    VegaTickBand::not_equal

    fn VegaTickBand::not_equal(x : VegaTickBand, y : VegaTickBand) -> Bool

    VegaTickInterval

    pub(all) enum VegaTickInterval {
    Count(Double)
    Interval(VegaTimeInterval)
    Step(VegaTimeInterval, Double)
    } derive(Eq,
    Debug
    )

    A tick count or spacing: a plain count, a calendar interval, or an interval with a step multiplier.

    VegaTickInterval::equal

    VegaTickInterval::not_equal

    fn VegaTickInterval::not_equal(x : VegaTickInterval, y : VegaTickInterval) -> Bool

    VegaTimeInterval

    pub(all) enum VegaTimeInterval {
    Millisecond
    Second
    Minute
    Hour
    Day
    Week
    Month
    Year
    } derive(Eq,
    Debug
    )

    A calendar interval, one variant per schema value.

    VegaTimeInterval::equal

    VegaTimeInterval::not_equal

    fn VegaTimeInterval::not_equal(x : VegaTimeInterval, y : VegaTimeInterval) -> Bool

    VegaTimeUnit

    pub(all) enum VegaTimeUnit {
    Year
    Quarter
    Month
    Week
    Day
    Dayofyear
    Date
    Hours
    Minutes
    Seconds
    Milliseconds
    UtcYear
    UtcQuarter
    UtcMonth
    UtcWeek
    UtcDay
    UtcDayofyear
    UtcDate
    UtcHours
    UtcMinutes
    UtcSeconds
    UtcMilliseconds
    Yearquarter
    Yearquartermonth
    Yearmonth
    Yearmonthdate
    Yearmonthdatehours
    Yearmonthdatehoursminutes
    Yearmonthdatehoursminutesseconds
    Yearweek
    Yearweekday
    Yearweekdayhours
    Yearweekdayhoursminutes
    Yearweekdayhoursminutesseconds
    Yeardayofyear
    Quartermonth
    Monthdate
    Monthdatehours
    Monthdatehoursminutes
    Monthdatehoursminutesseconds
    Weekday
    Weekdayhours
    Weekdayhoursminutes
    Weekdayhoursminutesseconds
    Dayhours
    Dayhoursminutes
    Dayhoursminutesseconds
    Hoursminutes
    Hoursminutesseconds
    Minutesseconds
    Secondsmilliseconds
    UtcYearquarter
    UtcYearquartermonth
    UtcYearmonth
    UtcYearmonthdate
    UtcYearmonthdatehours
    UtcYearmonthdatehoursminutes
    UtcYearmonthdatehoursminutesseconds
    UtcYearweek
    UtcYearweekday
    UtcYearweekdayhours
    UtcYearweekdayhoursminutes
    UtcYearweekdayhoursminutesseconds
    UtcYeardayofyear
    UtcQuartermonth
    UtcMonthdate
    UtcMonthdatehours
    UtcMonthdatehoursminutes
    UtcMonthdatehoursminutesseconds
    UtcWeekday
    UtcWeekdayhours
    UtcWeekdayhoursminutes
    UtcWeekdayhoursminutesseconds
    UtcDayhours
    UtcDayhoursminutes
    UtcDayhoursminutesseconds
    UtcHoursminutes
    UtcHoursminutesseconds
    UtcMinutesseconds
    UtcSecondsmilliseconds
    } derive(Eq,
    Debug
    )

    A Vega-Lite timeUnit, the complete schema closure: the eleven calendar units (Year … Milliseconds), their Utc counterparts, and every consecutive-unit concatenation the schema enumerates (YearQuarter, MonthDateHours, UtcSecondsMilliseconds, …). Each variant emits its schema string verbatim (Dayofyear → "dayofyear", UtcWeekdayHours → "utcweekdayhours"). pub(all) so callers can name the variants in a channel's time_unit.

    VegaTimeUnit::equal

    VegaTimeUnit::not_equal

    fn VegaTimeUnit::not_equal(x : VegaTimeUnit, y : VegaTimeUnit) -> Bool

    VegaTimeUnitTransform

    pub struct VegaTimeUnitTransform {
    time_unit : VegaTimeUnit
    field : String
    as_ : String
    } derive(Eq,
    Debug
    )

    The time-unit transform: truncate field to calendar units, written to the output name.

    VegaTimeUnitTransform::VegaTimeUnitTransform

    fn VegaTimeUnitTransform::VegaTimeUnitTransform(time_unit~ : VegaTimeUnit, field~ : String, as_~ : String) -> VegaTimeUnitTransform

    The time-unit transform: one column binned into calendar units.

    VegaTimeUnitTransform::equal

    VegaTimeUnitTransform::not_equal

    VegaTitle

    pub(all) enum VegaTitle {
    Text(String)
    Params(VegaTitleParams)
    } derive(Eq,
    Debug
    )

    A chart title: plain text, or the parameter form with styling and a subtitle.

    VegaTitle::equal

    fn VegaTitle::equal(VegaTitle, VegaTitle) -> Bool

    VegaTitle::not_equal

    fn VegaTitle::not_equal(x : VegaTitle, y : VegaTitle) -> Bool

    VegaTitleConfig

    pub struct VegaTitleConfig {
    align : VegaAlign?
    anchor : VegaAnchor?
    angle : Double?
    aria : Bool?
    baseline : VegaBaseline?
    color : String?
    dx : Double?
    dy : Double?
    font : String?
    font_size : Double?
    font_style : String?
    font_weight : VegaFontWeight?
    frame : VegaTitleFrame?
    limit : Double?
    line_height : Double?
    offset : Double?
    orient : VegaTitleOrient?
    subtitle_color : String?
    subtitle_font : String?
    subtitle_font_size : Double?
    subtitle_font_style : String?
    subtitle_font_weight : VegaFontWeight?
    subtitle_line_height : Double?
    subtitle_padding : Double?
    zindex : Double?
    } derive(Eq,
    Debug
    )

    The config-side title defaults, the schema's TitleConfig (BaseTitleNoValueRefs) — the intersection of VegaTitleParams (the title a spec carries) with the keys the config host accepts. A spec's own title names its text and its subtitle and may pick a style index entry; the config default styles whatever title a spec ends up drawing, so it carries none of those — the keys do not exist on TitleConfig and the config type does not carry them either. The subtitle styling keys (subtitleColor and the rest) are styling, and stay. Every property is optional.

    VegaTitleConfig::VegaTitleConfig

    fn VegaTitleConfig::VegaTitleConfig(align? : VegaAlign, anchor? : VegaAnchor, angle? : Double, aria? : Bool, baseline? : VegaBaseline, color? : String, dx? : Double, dy? : Double, font? : String, font_size? : Double, font_style? : String, font_weight? : VegaFontWeight, frame? : VegaTitleFrame, limit? : Double, line_height? : Double, offset? : Double, orient? : VegaTitleOrient, subtitle_color? : String, subtitle_font? : String, subtitle_font_size? : Double, subtitle_font_style? : String, subtitle_font_weight? : VegaFontWeight, subtitle_line_height? : Double, subtitle_padding? : Double, zindex? : Double) -> VegaTitleConfig

    Build one with every property optional.

    VegaTitleConfig::equal

    VegaTitleConfig::not_equal

    fn VegaTitleConfig::not_equal(x : VegaTitleConfig, y : VegaTitleConfig) -> Bool

    VegaTitleFrame

    pub(all) enum VegaTitleFrame {
    Bounds
    Group
    } derive(Eq,
    Debug
    )

    A title frame of reference: the group or the bounds.

    VegaTitleFrame::equal

    VegaTitleFrame::not_equal

    fn VegaTitleFrame::not_equal(x : VegaTitleFrame, y : VegaTitleFrame) -> Bool

    VegaTitleOrient

    pub(all) enum VegaTitleOrient {
    None
    Left
    Right
    Top
    Bottom
    } derive(Eq,
    Debug
    )

    A title orientation: a side or None.

    VegaTitleOrient::equal

    VegaTitleOrient::not_equal

    fn VegaTitleOrient::not_equal(x : VegaTitleOrient, y : VegaTitleOrient) -> Bool

    VegaTitleParams

    pub struct VegaTitleParams {
    text : String?
    align : VegaAlign?
    anchor : VegaAnchor?
    angle : Double?
    aria : Bool?
    baseline : VegaBaseline?
    color : String?
    dx : Double?
    dy : Double?
    font : String?
    font_size : Double?
    font_style : String?
    font_weight : VegaFontWeight?
    frame : VegaTitleFrame?
    limit : Double?
    line_height : Double?
    offset : Double?
    orient : VegaTitleOrient?
    style : String?
    subtitle : String?
    subtitle_color : String?
    subtitle_font : String?
    subtitle_font_size : Double?
    subtitle_font_style : String?
    subtitle_font_weight : VegaFontWeight?
    subtitle_line_height : Double?
    subtitle_padding : Double?
    zindex : Double?
    } derive(Eq,
    Debug
    )

    A chart title in its parameter form, the schema's TitleParams — the text (the schema requires it; a params form without one is refused by the schema, not by the type), an optional subtitle with its own styling, and the anchor, orientation, alignment, font, offset, and z-order of the whole block. Every property is optional; unset ones fall to the runtime's title defaults.

    VegaTitleParams::VegaTitleParams

    fn VegaTitleParams::VegaTitleParams(text? : String, align? : VegaAlign, anchor? : VegaAnchor, angle? : Double, aria? : Bool, baseline? : VegaBaseline, color? : String, dx? : Double, dy? : Double, font? : String, font_size? : Double, font_style? : String, font_weight? : VegaFontWeight, frame? : VegaTitleFrame, limit? : Double, line_height? : Double, offset? : Double, orient? : VegaTitleOrient, style? : String, subtitle? : String, subtitle_color? : String, subtitle_font? : String, subtitle_font_size? : Double, subtitle_font_style? : String, subtitle_font_weight? : VegaFontWeight, subtitle_line_height? : Double, subtitle_padding? : Double, zindex? : Double) -> VegaTitleParams

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaTitleParams::equal

    VegaTitleParams::not_equal

    fn VegaTitleParams::not_equal(x : VegaTitleParams, y : VegaTitleParams) -> Bool

    VegaTransform

    One transform, by kind — the mirror of the schema's transform union. pub(all) so callers build the variants; the array-carrying payloads take copies at their own constructors.

    VegaTransform::equal

    VegaTransform::not_equal

    fn VegaTransform::not_equal(x : VegaTransform, y : VegaTransform) -> Bool

    VegaType

    pub(all) enum VegaType {
    Quantitative
    Nominal
    Ordinal
    Temporal
    Geojson
    } derive(Eq,
    Debug
    )

    A Vega-Lite field type, used to override the dtype-based inference of any channel. pub(all) so callers can name the variants in a channel's type_override. Quantitative is a continuous measure (a color gradient), Nominal an unordered category (distinct colors per value), Ordinal an ordered category, Temporal a time field, and Geojson a GeoJSON feature collection carried in a String column (a geoshape channel; the dtype rule never infers it — a String column is nominal unless a caller says otherwise).

    VegaType::equal

    fn VegaType::equal(VegaType, VegaType) -> Bool

    VegaType::not_equal

    fn VegaType::not_equal(x : VegaType, y : VegaType) -> Bool

    VegaType::to_repr

    VegaVariableParam

    pub struct VegaVariableParam {
    name : String
    value :
    Json
    ?
    bind : VegaBind?
    expr : String?
    react : Bool?
    } derive(Eq,
    Debug
    )

    A variable parameter: a named value a chart's expressions reference, optionally bound to an input widget, initialised, or computed by an expression over other parameters. react (whether updates propagate downstream) defaults to true in the schema; None leaves it there.

    VegaVariableParam::VegaVariableParam

    fn VegaVariableParam::VegaVariableParam(name~ : String, value? :
    Json
    , bind? : VegaBind, expr? : String, react? : Bool) -> VegaVariableParam

    Build a variable parameter: the name every expression references, and any of the initial value, the input binding, and the driving expression.

    VegaVariableParam::equal

    VegaVariableParam::not_equal

    fn VegaVariableParam::not_equal(x : VegaVariableParam, y : VegaVariableParam) -> Bool

    VegaViewBackground

    pub struct VegaViewBackground {
    corner_radius : Double?
    cursor : VegaCursor?
    fill : String?
    fill_opacity : Double?
    opacity : Double?
    stroke : String?
    stroke_cap : VegaCap?
    stroke_dash_offset : Double?
    stroke_join : VegaJoin?
    stroke_miter_limit : Double?
    stroke_opacity : Double?
    stroke_width : Double?
    style : String?
    // private fields
    } derive(Eq,
    Debug
    )

    The single-view plot's own background, the schema's ViewBackground — a fill and stroke with their opacities and widths, a corner radius, a dash pattern, a cursor, and a named style. Every property is optional; unset ones fall to the view config's defaults. The stroke_dash array is copied at construction and copied again on read.

    VegaViewBackground::VegaViewBackground

    fn VegaViewBackground::VegaViewBackground(corner_radius? : Double, cursor? : VegaCursor, fill? : String, fill_opacity? : Double, opacity? : Double, stroke? : String, stroke_cap? : VegaCap, stroke_dash? : Array[Double], stroke_dash_offset? : Double, stroke_join? : VegaJoin, stroke_miter_limit? : Double, stroke_opacity? : Double, stroke_width? : Double, style? : String) -> VegaViewBackground

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaViewBackground::equal

    VegaViewBackground::not_equal

    VegaViewBackground::stroke_dash

    fn VegaViewBackground::stroke_dash(self : VegaViewBackground) -> Array[Double]?

    The stroke_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaViewConfig

    pub struct VegaViewConfig {
    clip : Bool?
    continuous_height : Double?
    continuous_width : Double?
    discrete_height : VegaDiscreteSize?
    discrete_width : VegaDiscreteSize?
    step : Double?
    corner_radius : Double?
    cursor : VegaCursor?
    fill : String?
    fill_opacity : Double?
    opacity : Double?
    stroke : String?
    stroke_cap : VegaCap?
    stroke_dash_offset : Double?
    stroke_join : VegaJoin?
    stroke_miter_limit : Double?
    stroke_opacity : Double?
    stroke_width : Double?
    // private fields
    } derive(Eq,
    Debug
    )

    The view frame's defaults: the continuous / discrete default sizes and the per-category step, clipping, and the frame's own fill and stroke styling.

    VegaViewConfig::VegaViewConfig

    fn VegaViewConfig::VegaViewConfig(clip? : Bool, continuous_height? : Double, continuous_width? : Double, discrete_height? : VegaDiscreteSize, discrete_width? : VegaDiscreteSize, step? : Double, corner_radius? : Double, cursor? : VegaCursor, fill? : String, fill_opacity? : Double, opacity? : Double, stroke? : String, stroke_cap? : VegaCap, stroke_dash? : Array[Double], stroke_dash_offset? : Double, stroke_join? : VegaJoin, stroke_miter_limit? : Double, stroke_opacity? : Double, stroke_width? : Double) -> VegaViewConfig

    Build one with every property optional; the array properties are copied, so an array the caller mutates afterwards cannot move a chart already built.

    VegaViewConfig::equal

    VegaViewConfig::not_equal

    fn VegaViewConfig::not_equal(x : VegaViewConfig, y : VegaViewConfig) -> Bool

    VegaViewConfig::stroke_dash

    fn VegaViewConfig::stroke_dash(self : VegaViewConfig) -> Array[Double]?

    The stroke_dash values, copied — reading the field itself would hand the caller the array the spec holds.

    VegaWindowField

    pub struct VegaWindowField {
    op : VegaWindowFieldOp
    field : String?
    as_ : String
    param : Double?
    } derive(Eq,
    Debug
    )

    One windowed output: the operation, the input field (absent for the field-less window functions — rank, row_number, and kin), the output name, and the window functions' numeric parameter (the lag / lead offset, the nth_value index, the ntile count).

    VegaWindowField::VegaWindowField

    fn VegaWindowField::VegaWindowField(op~ : VegaWindowFieldOp, as_~ : String, field? : String, param? : Double) -> VegaWindowField

    One window field: the calculation, its output name, and the column it reads.

    VegaWindowField::equal

    VegaWindowField::not_equal

    fn VegaWindowField::not_equal(x : VegaWindowField, y : VegaWindowField) -> Bool

    VegaWindowFieldOp

    pub(all) enum VegaWindowFieldOp {
    Aggregate(VegaAggregate)
    WindowOnly(VegaWindowOnlyOp)
    } derive(Eq,
    Debug
    )

    A windowed output's operation: an aggregate that runs over the window frame (sum, mean, …), or one of the window-only functions. The schema's WindowFieldDef.op is exactly this union — spelling it as one keeps a window-only verb reachable, which a bare VegaAggregate silently was not. pub(all) so callers can build the variants.

    VegaWindowFieldOp::equal

    VegaWindowFieldOp::not_equal

    fn VegaWindowFieldOp::not_equal(x : VegaWindowFieldOp, y : VegaWindowFieldOp) -> Bool

    VegaWindowOnlyOp

    pub(all) enum VegaWindowOnlyOp {
    RowNumber
    Rank
    DenseRank
    PercentRank
    CumeDist
    Ntile
    Lag
    Lead
    FirstValue
    LastValue
    NthValue
    } derive(Eq,
    Debug
    )

    A window-only operation, the schema's WindowOnlyOp — the ranking and offset functions that exist inside a window transform and nowhere else (row_number, rank, lag, …), one variant per value. Several take no input field, and lag / lead / nth_value take the schema's param offset (a VegaWindowField's param). pub(all) so callers can name the variants.

    VegaWindowOnlyOp::equal

    VegaWindowOnlyOp::not_equal

    fn VegaWindowOnlyOp::not_equal(x : VegaWindowOnlyOp, y : VegaWindowOnlyOp) -> Bool

    VegaWindowTransform

    pub struct VegaWindowTransform {
    frame : (VegaFrameLimit, VegaFrameLimit)?
    ignore_peers : Bool?
    // private fields
    } derive(Eq,
    Debug
    )

    The window transform: per-row windowed aggregates (a running sum, a rank), over a frame, sorted, grouped, ignoring or counting peer rows.

    VegaWindowTransform::VegaWindowTransform

    fn VegaWindowTransform::VegaWindowTransform(window~ : Array[VegaWindowField], groupby? : Array[String], sort? : Array[VegaSortField], frame? : (VegaFrameLimit, VegaFrameLimit), ignore_peers? : Bool) -> VegaWindowTransform

    The array properties are copied at construction, so arrays the caller mutates afterwards cannot move a chart already built; read them back through their accessors, which copy again.

    VegaWindowTransform::equal

    VegaWindowTransform::groupby

    fn VegaWindowTransform::groupby(self : VegaWindowTransform) -> Array[String]?

    The groupby list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaWindowTransform::not_equal

    VegaWindowTransform::sort

    The sort list, copied — reading the field itself would hand the caller the array the spec holds.

    VegaWindowTransform::window

    The window list, copied — reading the field itself would hand the caller the array the spec holds.

    constant

    A constant-value encoding channel: the channel shows the given JSON value for every row (the schema's value definition — a fixed color, a fixed size) instead of reading a column. Its type inference has no column to read, so the emitted definition carries only the value (and any title / format set on the channel through a builder is unreachable — use field when a column is wanted).

    datum

    A constant-datum encoding channel: like constant, but the value passes through the channel's scale (a scale type must fit — a number under a linear scale) rather than being shown verbatim. The schema's datum definition.

    field

    fn field(name : String, aggregate? : VegaAggregate, bin? : VegaBin, time_unit? : VegaTimeUnit, sort? : VegaChannelSort, type_override? : VegaType, title? : String, format? : String, stack? : VegaStack, band_position? : Double, scale? : VegaScaleRef, axis? : VegaAxisRef, legend? : VegaLegendRef, condition? : VegaCondition) -> VegaChannel

    The field-reference encoding channel for column name, with any of the VegaChannel modifiers named — e.g. field("revenue",aggregate=Sum), field("price", bin=On), field("ts",time_unit=Month), field("region", sort=Descending), field("g",type_override=Nominal). The col idiom of the chart export: a free function, so the facade re-exports it and the common call stays two words short.

    format_vega_html

    Render df and chart as a standalone HTML document that displays the chart: the specification format_vega_lite emits, embedded as a JavaScript expression, plus the three pinned runtime scripts (vega@6.4.0, vega-lite@6.5.0 — the mirrored schema's own version — and vega-embed@7.3.0, loaded from a public CDN). Opening the file in a browser renders the interactive chart; vega-embed's default action links offer SVG / PNG export, the spec source, and the online editor. The spec and its inlined data travel inside the document, so the file is self-contained apart from the CDN scripts — viewing needs network access.

    Each field channel names a column of df, resolved in the fixed order the ChartSpec doc states, and the first name absent from the frame raises ColumnNotFound(name). This is not total, for the same full set of reasons format_vega_lite's doc enumerates — the ColumnNotFound family (a channel column, a facet channel's column, a repeat field-list name) and the InvalidOperation family (a constant a position or offset channel's value definition refuses, a channel carrying both a field and a repeat reference, a facet sort keyed on another channel, a composition child of an illegal shape for its host, and a composition with nothing to compose); the spec emission underneath is the shared one. Before embedding, every literal < in the emitted JSON is rewritten to its \u003c JSON escape, and the U+2028 / U+2029 line separators likewise, so chart data cannot close the host <script> element early; the embedded text is the same JSON value, readable by any standards-compliant JSON reader.

    format_vega_lite

    Render df and spec as a complete Vega-Lite v6 specification JSON string: $schema (pinned to the Vega-Lite v6 schema URL) + the optional chrome (name, description, title, autosize, background, padding, width, height) + mark (from spec.kind) + encoding (the spec's channels, each {field, type} or a value / datum definition, plus its declared modifiers) + data.values (the frame inlined as JSON records, sharing format_json's cell mapping — null and non-finite-float cells become JSON null). A frame with the encoded columns but zero rows yields "data":{"values":[]}.

    Each field channel's type follows its column's dtype — the single statement of the dtype→type rule: a numeric column (Int / Float / Decimal) is "quantitative", a Date / Timestamp column is "temporal" (its ISO cells — data.values' date units, via the JSON records' ISO mapping — sort chronologically, and a temporal axis orders by time rather than by first appearance), a Duration column is "quantitative" (its data.values cells leave as microsecond counts, chart_data_values's one departure from the shared JSON records walk — Vega's temporal has no ISO-duration parser, so a temporal type would hand the runtime strings it cannot read), and every other dtype is "nominal" — unless the channel carries an explicit type_override. A count channel reads no column and is "quantitative".

    The spec's channels are resolved in the fixed order the ChartSpec doc states (x first through order last), and the first name absent from df raises ColumnNotFound(name). The function is not total, and this is the full set of reasons it raises:

    • ColumnNotFound — a channel column, a facet channel's column, or a repeat field-list name absent from df (the composition halves are resolved ahead of their children, in the order they are written).
    • InvalidOperation — a constant a position channel's value definition refuses (not a number or "width" / "height"), a constant on an offset channel that is not a number, a channel carrying both a field and a repeat reference, a facet sort keyed on another channel (the bare-channel form), and a composition shape the schema rejects: a layer member or a facet's spec that is not a single view or a layer, or a layer / concat / facet / repeat with nothing to compose (see chart_emit).

    The declared modifiers are not computed here — the Vega-Lite runtime evaluates them at render time. The emitted text is always valid JSON (it is built through @json and stringified), so it round-trips through any standards-compliant JSON / Vega-Lite reader.

    plot

    Bind df as the data of a chart and pick its mark: the returned FramePlot carries a mark method per ChartSpec constructor, each taking plain column names where the mirror takes a VegaChannel. The frame is held for the terminals, so it appears once, here, rather than at every render call:

    plot(df).bar(x="region", y="revenue").write_html("out.html")

    write_vega_html

    fn write_vega_html(path : String, df :
    DataFrame
    , chart : Chart) -> Unit raise
    DataError

    Write the HTML document format_vega_html produces to path. A ColumnNotFound from the spec emission (a spec column absent from df) propagates unchanged, a filesystem failure surfaces as raise IoError(message), and content holding an unpaired UTF-16 surrogate is refused with raise InvalidOperation.

    write_vega_lite

    fn write_vega_lite(path : String, df :
    DataFrame
    , chart : Chart) -> Unit raise
    DataError

    Write a Vega-Lite v6 spec for df / chart to path. Mirrors write_json: a ColumnNotFound from format_vega_lite (a spec column absent from df) propagates unchanged, a filesystem failure surfaces as raise IoError(message), and content holding an unpaired UTF-16 surrogate is refused with raise InvalidOperation.