pub enum DataRenderType {
Show 13 variants
Scatter {
scatter: DataScatterStyleConfig,
},
Line {
line: DataLineStyleConfig,
},
ScatterLine {
scatter: DataScatterStyleConfig,
line: DataLineStyleConfig,
},
ScatterErrorbarX {
scatter: DataScatterStyleConfig,
err_x: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
ScatterErrorbarY {
scatter: DataScatterStyleConfig,
err_y: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
ScatterErrorbarXY {
scatter: DataScatterStyleConfig,
err_x: ErrorRef,
err_y: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
LineScatterErrorbarX {
scatter: DataScatterStyleConfig,
line: DataLineStyleConfig,
err_x: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
LineScatterErrorbarY {
scatter: DataScatterStyleConfig,
line: DataLineStyleConfig,
err_y: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
LineScatterErrorbarXY {
scatter: DataScatterStyleConfig,
line: DataLineStyleConfig,
err_x: ErrorRef,
err_y: ErrorRef,
err_style: DataErrorBarStyleConfig,
},
Histogram {
bar: DataBarStyleConfig,
},
Heatmap {
matrix: MatrixRef,
fill: FieldFillConfig,
},
Contour {
matrix: MatrixRef,
contour: ContourConfig,
},
HeatmapContour {
matrix: MatrixRef,
fill: FieldFillConfig,
contour: ContourConfig,
},
}Expand description
Series render type. Each variant maps to one independent draw path.
Combinations are kept explicit (instead of optional fields on a single
struct) so the renderer can pick its primitives with one match.
Variants§
Scatter
Fields
§
scatter: DataScatterStyleConfigLine
Fields
§
line: DataLineStyleConfigScatterLine
ScatterErrorbarX
ScatterErrorbarY
ScatterErrorbarXY
LineScatterErrorbarX
LineScatterErrorbarY
LineScatterErrorbarXY
Histogram
Bars from pre-binned data. Binning is the host’s job: the renderer is
handed (edges, counts) and draws them.
bar.orientation alone decides which column is which — Vertical reads
x_column as edges and y_column as counts, Horizontal the reverse.
The lengths are not consulted to guess the roles.
Fields
§
bar: DataBarStyleConfigHeatmap
A filled field and nothing else. x_column / y_column are the grid
coordinates; matrix names the columns that make up z.
Contour
Contour lines only — the field is not filled.
HeatmapContour
Filled field with contour lines drawn over it.
Trait Implementations§
Source§impl Clone for DataRenderType
impl Clone for DataRenderType
Source§impl Debug for DataRenderType
impl Debug for DataRenderType
Source§impl<'de> Deserialize<'de> for DataRenderType
impl<'de> Deserialize<'de> for DataRenderType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DataRenderType
impl PartialEq for DataRenderType
Source§impl Serialize for DataRenderType
impl Serialize for DataRenderType
impl StructuralPartialEq for DataRenderType
Auto Trait Implementations§
impl Freeze for DataRenderType
impl RefUnwindSafe for DataRenderType
impl Send for DataRenderType
impl Sync for DataRenderType
impl Unpin for DataRenderType
impl UnsafeUnpin for DataRenderType
impl UnwindSafe for DataRenderType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more