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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.