Skip to main content

Crate chart

Crate chart 

Source
Expand description

Charts for gpui: a Chart is a subset of Vega-Lite over columnar Data. Mark, channel and field type names are Vega-Lite’s.

Re-exports§

pub use data::Column;
pub use data::Data;
pub use data::Text;
pub use model::Channel;
pub use model::Chart;
pub use model::Encoding;
pub use model::Kind;
pub use model::Layer;
pub use model::Mark;
pub use model::Scale;
pub use model::Sort;
pub use plan::Plan;
pub use plan::plan;
pub use view::ChartView;
pub use view::view;

Modules§

data
A table of named, equal-length columns.
decimate
Thinning a line to what its pixels can show.
model
What a chart draws: layers over shared axes, each one Mark per row of its Data, placed by the fields its Encoding names.
plan
A chart laid out at a size: every mark, axis and label in pixels from the chart’s top-left corner, with no window involved.
scale
Where values land along a side of the plot, and the ticks that label it.
time
Times as milliseconds since the Unix epoch, read on the UTC calendar.
view
A Chart drawn as one element: laid out once per data generation, size and text style, then painted every frame from what was kept.