[][src]Struct google_sheets4::ScorecardChartSpec

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

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

number_format_source: Option<String>

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

baseline_value_data: Option<ChartData>

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

key_value_format: Option<KeyValueFormat>

Formatting options for key value.

aggregate_type: Option<String>

The aggregation type for key and baseline chart data in scorecard chart. 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.

key_value_data: Option<ChartData>

The data for scorecard key value.

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.

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.

Trait Implementations

impl Clone for ScorecardChartSpec[src]

impl Debug for ScorecardChartSpec[src]

impl Default for ScorecardChartSpec[src]

impl<'de> Deserialize<'de> for ScorecardChartSpec[src]

impl Part for ScorecardChartSpec[src]

impl Serialize for ScorecardChartSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any