Class: Google::Apis::SheetsV4::ScorecardChartSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScorecardChartSpec

Returns a new instance of ScorecardChartSpec.



8975
8976
8977
# File 'lib/google/apis/sheets_v4/classes.rb', line 8975

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aggregate_typeString

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

Returns:

  • (String)


8937
8938
8939
# File 'lib/google/apis/sheets_v4/classes.rb', line 8937

def aggregate_type
  @aggregate_type
end

#baseline_value_dataGoogle::Apis::SheetsV4::ChartData

The data included in a domain or series. Corresponds to the JSON property baselineValueData



8942
8943
8944
# File 'lib/google/apis/sheets_v4/classes.rb', line 8942

def baseline_value_data
  @baseline_value_data
end

#baseline_value_formatGoogle::Apis::SheetsV4::BaselineValueFormat

Formatting options for baseline value. Corresponds to the JSON property baselineValueFormat



8947
8948
8949
# File 'lib/google/apis/sheets_v4/classes.rb', line 8947

def baseline_value_format
  @baseline_value_format
end

#custom_format_optionsGoogle::Apis::SheetsV4::ChartCustomNumberFormatOptions

Custom number formatting options for chart attributes. Corresponds to the JSON property customFormatOptions



8952
8953
8954
# File 'lib/google/apis/sheets_v4/classes.rb', line 8952

def custom_format_options
  @custom_format_options
end

#key_value_dataGoogle::Apis::SheetsV4::ChartData

The data included in a domain or series. Corresponds to the JSON property keyValueData



8957
8958
8959
# File 'lib/google/apis/sheets_v4/classes.rb', line 8957

def key_value_data
  @key_value_data
end

#key_value_formatGoogle::Apis::SheetsV4::KeyValueFormat

Formatting options for key value. Corresponds to the JSON property keyValueFormat



8962
8963
8964
# File 'lib/google/apis/sheets_v4/classes.rb', line 8962

def key_value_format
  @key_value_format
end

#number_format_sourceString

The number format source used in the scorecard chart. This field is optional. Corresponds to the JSON property numberFormatSource

Returns:

  • (String)


8967
8968
8969
# File 'lib/google/apis/sheets_v4/classes.rb', line 8967

def number_format_source
  @number_format_source
end

#scale_factorFloat

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

Returns:

  • (Float)


8973
8974
8975
# File 'lib/google/apis/sheets_v4/classes.rb', line 8973

def scale_factor
  @scale_factor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
# File 'lib/google/apis/sheets_v4/classes.rb', line 8980

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