pub struct HeatmapSeries {
pub data: Vec<Vec<f64>>,
pub label: Option<String>,
pub annotate: bool,
pub row_labels: Option<Vec<String>>,
pub col_labels: Option<Vec<String>>,
pub palette: Option<Palette>,
}Expand description
A heatmap series rendering a 2D matrix as colored cells.
Fields§
§data: Vec<Vec<f64>>2D data: data[row][col].
label: Option<String>Optional series label.
annotate: boolWhether to annotate cells with values.
row_labels: Option<Vec<String>>Optional row labels.
col_labels: Option<Vec<String>>Optional column labels.
palette: Option<Palette>Color palette for mapping values.
Implementations§
Trait Implementations§
Source§impl Clone for HeatmapSeries
impl Clone for HeatmapSeries
Source§fn clone(&self) -> HeatmapSeries
fn clone(&self) -> HeatmapSeries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeatmapSeries
impl Debug for HeatmapSeries
Source§impl SeriesRenderer for HeatmapSeries
impl SeriesRenderer for HeatmapSeries
Source§fn data_bounds(&self) -> DataBounds
fn data_bounds(&self) -> DataBounds
Compute the data bounds for this series.
Auto Trait Implementations§
impl Freeze for HeatmapSeries
impl RefUnwindSafe for HeatmapSeries
impl Send for HeatmapSeries
impl Sync for HeatmapSeries
impl Unpin for HeatmapSeries
impl UnsafeUnpin for HeatmapSeries
impl UnwindSafe for HeatmapSeries
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