pub struct TreemapChartColorScale {
pub max_value_color: Option<Color>,
pub max_value_color_style: Option<ColorStyle>,
pub mid_value_color: Option<Color>,
pub mid_value_color_style: Option<ColorStyle>,
pub min_value_color: Option<Color>,
pub min_value_color_style: Option<ColorStyle>,
pub no_data_color: Option<Color>,
pub no_data_color_style: Option<ColorStyle>,
}
Expand description
A color scale for a treemap chart.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max_value_color: Option<Color>
The background color for cells with a color value greater than or equal to maxValue. Defaults to #109618 if not specified. Deprecated: Use max_value_color_style.
max_value_color_style: Option<ColorStyle>
The background color for cells with a color value greater than or equal to maxValue. Defaults to #109618 if not specified. If max_value_color is also set, this field takes precedence.
mid_value_color: Option<Color>
The background color for cells with a color value at the midpoint between minValue and maxValue. Defaults to #efe6dc if not specified. Deprecated: Use mid_value_color_style.
mid_value_color_style: Option<ColorStyle>
The background color for cells with a color value at the midpoint between minValue and maxValue. Defaults to #efe6dc if not specified. If mid_value_color is also set, this field takes precedence.
min_value_color: Option<Color>
The background color for cells with a color value less than or equal to minValue. Defaults to #dc3912 if not specified. Deprecated: Use min_value_color_style.
min_value_color_style: Option<ColorStyle>
The background color for cells with a color value less than or equal to minValue. Defaults to #dc3912 if not specified. If min_value_color is also set, this field takes precedence.
no_data_color: Option<Color>
The background color for cells that have no color data associated with them. Defaults to #000000 if not specified. Deprecated: Use no_data_color_style.
no_data_color_style: Option<ColorStyle>
The background color for cells that have no color data associated with them. Defaults to #000000 if not specified. If no_data_color is also set, this field takes precedence.
Trait Implementations§
Source§impl Clone for TreemapChartColorScale
impl Clone for TreemapChartColorScale
Source§fn clone(&self) -> TreemapChartColorScale
fn clone(&self) -> TreemapChartColorScale
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TreemapChartColorScale
impl Debug for TreemapChartColorScale
Source§impl Default for TreemapChartColorScale
impl Default for TreemapChartColorScale
Source§fn default() -> TreemapChartColorScale
fn default() -> TreemapChartColorScale
Source§impl<'de> Deserialize<'de> for TreemapChartColorScale
impl<'de> Deserialize<'de> for TreemapChartColorScale
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>,
Source§impl Serialize for TreemapChartColorScale
impl Serialize for TreemapChartColorScale
impl Part for TreemapChartColorScale
Auto Trait Implementations§
impl Freeze for TreemapChartColorScale
impl RefUnwindSafe for TreemapChartColorScale
impl Send for TreemapChartColorScale
impl Sync for TreemapChartColorScale
impl Unpin for TreemapChartColorScale
impl UnwindSafe for TreemapChartColorScale
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more