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 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 ScorecardChartSpec
impl Send for ScorecardChartSpec
impl Sync for ScorecardChartSpec
impl Unpin for ScorecardChartSpec
impl UnwindSafe for ScorecardChartSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more