Sign in

    sayoi7799/moon_vegalite/spec does not have a README file

    SpecError

    pub(all) suberror SpecError {
    SpecError(String)
    }

    SpecError::message

    fn SpecError::message(self : SpecError) -> String

    Message of a spec error.

    AggregateOp

    pub(all) struct AggregateOp {
    op : String
    field : String?
    out : String
    }

    ChannelDef

    pub(all) struct ChannelDef {
    field : String?
    typ : String?
    aggregate : String?
    bin : Map[String,
    Value
    ]?
    binned : Bool
    time_unit : String?
    sort :
    Value
    ?
    scale : Map[String,
    Value
    ]?
    scale_off : Bool
    axis : Guide
    legend : Guide
    title : String??
    format : String?
    format_type : String?
    value :
    Value
    ?
    datum :
    Value
    ?
    stack : String?
    band : Double?
    band_position : Double?
    }

    A field / value definition of an encoding channel.

    FilterSpec

    pub(all) enum FilterSpec {
    Expr(String)
    Predicate(Predicate)
    }

    Guide

    pub(all) enum Guide {
    Default
    Off
    Props(Map[String,
    Value
    ])
    }

    Mark

    pub(all) struct Mark {
    typ : String
    props : Map[String,
    Value
    ]
    }

    Predicate

    A field predicate, possibly combined with and / or / not.

    Reader

    pub struct Reader {
    path : String
    obj : Map[String, Json]
    used : Array[String]
    }

    A JSON object being consumed key by key.

    Reader::boolean

    fn Reader::boolean(self : Reader, key : String) -> Bool? raise SpecError

    Reader::finish

    fn Reader::finish(self : Reader, unsupported_keys? : Array[String]) -> Unit raise SpecError

    Fail on any property that has not been consumed. Names in unsupported_keys are valid Vega-Lite properties that this library does not implement.

    Reader::has

    fn Reader::has(self : Reader, key : String) -> Bool

    Reader::ignore

    fn Reader::ignore(self : Reader, keys : Array[String]) -> Unit

    Accept (and ignore) properties that do not affect rendering.

    Reader::new

    fn Reader::new(path : String, j : Json) -> Reader raise SpecError

    Reader::number

    fn Reader::number(self : Reader, key : String) -> Double? raise SpecError

    Reader::path_of

    fn Reader::path_of(self : Reader, key : String) -> String

    Reader::string

    fn Reader::string(self : Reader, key : String) -> String? raise SpecError

    Reader::take

    fn Reader::take(self : Reader, key : String) -> Json?

    The raw value of a key, marking it consumed.

    Reader::value

    fn Reader::value(self : Reader, key : String) ->
    Value
    ?

    A value of any JSON type converted to a Value.

    Spec

    pub(all) struct Spec {
    mark : Mark
    encoding : Array[(String, ChannelDef)]
    transform : Array[Transform]
    data : Array[Map[String,
    Value
    ]]?
    width :
    Value
    ?
    height :
    Value
    ?
    padding :
    Value
    ?
    background : String?
    title : String?
    description : String?
    config : Map[String,
    Value
    ]
    }

    Transform

    pub(all) enum Transform {
    Filter(FilterSpec)
    Calculate(String, String)
    Aggregate(Array[AggregateOp], Array[String])
    Bin(String, Map[String,
    Value
    ], Array[String])
    TimeUnit(String, String, String)
    Fold(Array[String], Array[String])
    }

    One data transform, as written in the spec.

    index_path

    fn index_path(base : String, i : Int) -> String

    invalid

    fn invalid(path : String, msg : String) -> SpecError

    join_path

    fn join_path(base : String, key : String) -> String

    parse_spec

    fn parse_spec(j : Json) -> Spec raise SpecError

    Parse a Vega-Lite specification from parsed JSON.

    parse_spec_text

    fn parse_spec_text(text : String) -> Spec raise SpecError

    Parse a specification from JSON text.

    unsupported

    fn unsupported(path : String) -> SpecError

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io