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§
Source§impl Clone for ScorecardChartSpec
impl Clone for ScorecardChartSpec
Source§fn clone(&self) -> ScorecardChartSpec
fn clone(&self) -> ScorecardChartSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScorecardChartSpec
impl Debug for ScorecardChartSpec
Source§impl Default for ScorecardChartSpec
impl Default for ScorecardChartSpec
Source§fn default() -> ScorecardChartSpec
fn default() -> ScorecardChartSpec
Source§impl<'de> Deserialize<'de> for ScorecardChartSpec
impl<'de> Deserialize<'de> for ScorecardChartSpec
Source§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>,
Source§impl Serialize for ScorecardChartSpec
impl Serialize for ScorecardChartSpec
impl Part for ScorecardChartSpec
Auto Trait Implementations§
impl Freeze for ScorecardChartSpec
impl RefUnwindSafe for ScorecardChartSpec
impl Send for ScorecardChartSpec
impl Sync for ScorecardChartSpec
impl Unpin for ScorecardChartSpec
impl UnwindSafe for ScorecardChartSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more