Struct google_sheets4::api::ScorecardChartSpec[][src]

pub struct ScorecardChartSpec {
    pub aggregate_type: Option<String>,
    pub baseline_value_data: Option<ChartData>,
    pub baseline_value_format: Option<BaselineValueFormat>,
    pub custom_format_options: Option<ChartCustomNumberFormatOptions>,
    pub key_value_data: Option<ChartData>,
    pub key_value_format: Option<KeyValueFormat>,
    pub number_format_source: Option<String>,
    pub scale_factor: Option<f64>,
}
Expand description

A scorecard chart. Scorecard charts are used to highlight key performance indicators, known as KPIs, on the spreadsheet. A scorecard chart can represent things like total sales, average cost, or a top selling item. You can specify a single data value, or aggregate over a range of data. Percentage or absolute difference from a baseline value can be highlighted, like changes over time.

This type is not used in any activity, and only used as part of another schema.

Fields

aggregate_type: Option<String>

The aggregation type for key and baseline chart data in scorecard chart. This field is not supported for data source charts. Use the ChartData.aggregateType field of the key_value_data or baseline_value_data instead for data source charts. This field is optional.

baseline_value_data: Option<ChartData>

The data for scorecard baseline value. This field is optional.

baseline_value_format: Option<BaselineValueFormat>

Formatting options for baseline value. This field is needed only if baseline_value_data is specified.

custom_format_options: Option<ChartCustomNumberFormatOptions>

Custom formatting options for numeric key/baseline values in scorecard chart. This field is used only when number_format_source is set to CUSTOM. This field is optional.

key_value_data: Option<ChartData>

The data for scorecard key value.

key_value_format: Option<KeyValueFormat>

Formatting options for key value.

number_format_source: Option<String>

The number format source used in the scorecard chart. This field is optional.

scale_factor: Option<f64>

Value to scale scorecard key and baseline value. For example, a factor of 10 can be used to divide all values in the chart by 10. This field is optional.

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.