pub struct BasicChartSeries {
pub color: Option<Color>,
pub color_style: Option<ColorStyle>,
pub data_label: Option<DataLabel>,
pub line_style: Option<LineStyle>,
pub point_style: Option<PointStyle>,
pub series: Option<ChartData>,
pub style_overrides: Option<Vec<BasicSeriesDataPointStyleOverride>>,
pub target_axis: Option<String>,
pub type_: Option<String>,
}
Expand description
A single series of data in a chart. For example, if charting stock prices over time, multiple series may exist, one for the “Open Price”, “High Price”, “Low Price” and “Close Price”.
This type is not used in any activity, and only used as part of another schema.
Fields§
§color: Option<Color>
The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used. Deprecated: Use color_style.
color_style: Option<ColorStyle>
The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used. If color is also set, this field takes precedence.
data_label: Option<DataLabel>
Information about the data labels for this series.
line_style: Option<LineStyle>
The line style of this series. Valid only if the chartType is AREA, LINE, or SCATTER. COMBO charts are also supported if the series chart type is AREA or LINE.
point_style: Option<PointStyle>
The style for points associated with this series. Valid only if the chartType is AREA, LINE, or SCATTER. COMBO charts are also supported if the series chart type is AREA, LINE, or SCATTER. If empty, a default point style is used.
series: Option<ChartData>
The data being visualized in this chart series.
style_overrides: Option<Vec<BasicSeriesDataPointStyleOverride>>
Style override settings for series data points.
target_axis: Option<String>
The minor axis that will specify the range of values for this series. For example, if charting stocks over time, the “Volume” series may want to be pinned to the right with the prices pinned to the left, because the scale of trading volume is different than the scale of prices. It is an error to specify an axis that isn’t a valid minor axis for the chart’s type.
type_: Option<String>
The type of this series. Valid only if the chartType is COMBO. Different types will change the way the series is visualized. Only LINE, AREA, and COLUMN are supported.
Trait Implementations§
Source§impl Clone for BasicChartSeries
impl Clone for BasicChartSeries
Source§fn clone(&self) -> BasicChartSeries
fn clone(&self) -> BasicChartSeries
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BasicChartSeries
impl Debug for BasicChartSeries
Source§impl Default for BasicChartSeries
impl Default for BasicChartSeries
Source§fn default() -> BasicChartSeries
fn default() -> BasicChartSeries
Source§impl<'de> Deserialize<'de> for BasicChartSeries
impl<'de> Deserialize<'de> for BasicChartSeries
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 BasicChartSeries
impl Serialize for BasicChartSeries
impl Part for BasicChartSeries
Auto Trait Implementations§
impl Freeze for BasicChartSeries
impl RefUnwindSafe for BasicChartSeries
impl Send for BasicChartSeries
impl Sync for BasicChartSeries
impl Unpin for BasicChartSeries
impl UnwindSafe for BasicChartSeries
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