Struct google_sheets4::api::BasicChartSeries [−][src]
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.
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
Returns the “default value” for a type. Read more
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 RefUnwindSafe for BasicChartSeries
impl Send for BasicChartSeries
impl Sync for BasicChartSeries
impl Unpin for BasicChartSeries
impl UnwindSafe for BasicChartSeries
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more