Class: Google::Apis::SheetsV4::ScorecardChartSpec
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ScorecardChartSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#aggregate_type ⇒ String
The aggregation type for key and baseline chart data in scorecard chart.
-
#baseline_value_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
-
#baseline_value_format ⇒ Google::Apis::SheetsV4::BaselineValueFormat
Formatting options for baseline value.
-
#custom_format_options ⇒ Google::Apis::SheetsV4::ChartCustomNumberFormatOptions
Custom number formatting options for chart attributes.
-
#key_value_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
-
#key_value_format ⇒ Google::Apis::SheetsV4::KeyValueFormat
Formatting options for key value.
-
#number_format_source ⇒ String
The number format source used in the scorecard chart.
-
#scale_factor ⇒ Float
Value to scale scorecard key and baseline value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScorecardChartSpec
constructor
A new instance of ScorecardChartSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ScorecardChartSpec
Returns a new instance of ScorecardChartSpec
8032 8033 8034 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregate_type ⇒ String
The aggregation type for key and baseline chart data in scorecard chart.
This field is optional.
Corresponds to the JSON property aggregateType
7992 7993 7994 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7992 def aggregate_type @aggregate_type end |
#baseline_value_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property baselineValueData
7997 7998 7999 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7997 def baseline_value_data @baseline_value_data end |
#baseline_value_format ⇒ Google::Apis::SheetsV4::BaselineValueFormat
Formatting options for baseline value.
Corresponds to the JSON property baselineValueFormat
8002 8003 8004 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8002 def baseline_value_format @baseline_value_format end |
#custom_format_options ⇒ Google::Apis::SheetsV4::ChartCustomNumberFormatOptions
Custom number formatting options for chart attributes.
Corresponds to the JSON property customFormatOptions
8007 8008 8009 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8007 def @custom_format_options end |
#key_value_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property keyValueData
8012 8013 8014 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8012 def key_value_data @key_value_data end |
#key_value_format ⇒ Google::Apis::SheetsV4::KeyValueFormat
Formatting options for key value.
Corresponds to the JSON property keyValueFormat
8017 8018 8019 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8017 def key_value_format @key_value_format end |
#number_format_source ⇒ String
The number format source used in the scorecard chart.
This field is optional.
Corresponds to the JSON property numberFormatSource
8023 8024 8025 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8023 def number_format_source @number_format_source end |
#scale_factor ⇒ Float
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
8030 8031 8032 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8030 def scale_factor @scale_factor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8037 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 |