enum
Layout
pub enum Layout {
Series(fn(&Props, &Dataset, Option<f32>) -> Plot),
Table(fn(&Props, &Table, Option<f32>) -> Result<Plot, String>),
Geo(fn(&Props, &Table, &Table, Option<f32>) -> Result<Plot, String>),
Places(fn(&Props, &Table, &Table, Option<f32>) -> Result<Plot, String>),
}A chart's layout, from its props and data.
Variants
Table
Table(fn(&Props, &Table, Option<f32>) -> Result<Plot, String>)Reads the columns it needs itself. Errors are for the reader.
Geo
Geo(fn(&Props, &Table, &Table, Option<f32>) -> Result<Plot, String>)Data joined to the shapes in the geo source.
Places
Places(fn(&Props, &Table, &Table, Option<f32>) -> Result<Plot, String>)Places, over the shapes in geo if there is one.