pub struct HeatmapSpec {
pub rows: Vec<String>,
pub columns: Vec<String>,
pub cells: Vec<HeatmapCellSpec>,
pub categories: Vec<String>,
pub scale: Option<HeatmapScale>,
pub midpoint: Option<f64>,
pub value_label: Option<String>,
pub row_order: Option<HeatmapOrder>,
pub column_order: Option<HeatmapOrder>,
}Expand description
A heatmap: values, or categories, in a grid of rows and columns. A cell that is not listed has no value and is drawn as such.
Fields§
§rows: Vec<String>§columns: Vec<String>§cells: Vec<HeatmapCellSpec>§categories: Vec<String>The categories of a heatmap whose cells name one instead of a value, each with a fill and a symbol. Empty for a numeric heatmap.
scale: Option<HeatmapScale>The color scale of a numeric heatmap; sequential by default.
midpoint: Option<f64>Where a diverging scale turns; 0 by default.
value_label: Option<String>What the values stand for, named in the key; by default the word for a value.
row_order: Option<HeatmapOrder>The order of the rows; as listed by default.
column_order: Option<HeatmapOrder>The order of the columns; as listed by default.
Trait Implementations§
Source§impl Clone for HeatmapSpec
impl Clone for HeatmapSpec
Source§impl Debug for HeatmapSpec
impl Debug for HeatmapSpec
Source§impl<'de> Deserialize<'de> for HeatmapSpec
impl<'de> Deserialize<'de> for HeatmapSpec
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
Auto Trait Implementations§
impl Freeze for HeatmapSpec
impl RefUnwindSafe for HeatmapSpec
impl Send for HeatmapSpec
impl Sync for HeatmapSpec
impl Unpin for HeatmapSpec
impl UnsafeUnpin for HeatmapSpec
impl UnwindSafe for HeatmapSpec
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