class Google::Apis::SheetsV4::ScorecardChartSpec

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.

Attributes

aggregate_type[RW]

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. Corresponds to the JSON property `aggregateType` @return [String]

baseline_value_data[RW]

The data included in a domain or series. Corresponds to the JSON property `baselineValueData` @return [Google::Apis::SheetsV4::ChartData]

baseline_value_format[RW]

Formatting options for baseline value. Corresponds to the JSON property `baselineValueFormat` @return [Google::Apis::SheetsV4::BaselineValueFormat]

custom_format_options[RW]

Custom number formatting options for chart attributes. Corresponds to the JSON property `customFormatOptions` @return [Google::Apis::SheetsV4::ChartCustomNumberFormatOptions]

key_value_data[RW]

The data included in a domain or series. Corresponds to the JSON property `keyValueData` @return [Google::Apis::SheetsV4::ChartData]

key_value_format[RW]

Formatting options for key value. Corresponds to the JSON property `keyValueFormat` @return [Google::Apis::SheetsV4::KeyValueFormat]

number_format_source[RW]

The number format source used in the scorecard chart. This field is optional. Corresponds to the JSON property `numberFormatSource` @return [String]

scale_factor[RW]

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. Corresponds to the JSON property `scaleFactor` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 8560
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 8565
def update!(**args)
  @aggregate_type = args[:aggregate_type] if args.key?(:aggregate_type)
  @baseline_value_data = args[:baseline_value_data] if args.key?(:baseline_value_data)
  @baseline_value_format = args[:baseline_value_format] if args.key?(:baseline_value_format)
  @custom_format_options = args[:custom_format_options] if args.key?(:custom_format_options)
  @key_value_data = args[:key_value_data] if args.key?(:key_value_data)
  @key_value_format = args[:key_value_format] if args.key?(:key_value_format)
  @number_format_source = args[:number_format_source] if args.key?(:number_format_source)
  @scale_factor = args[:scale_factor] if args.key?(:scale_factor)
end