Class: Google::Apis::SheetsV4::ChartData

Inherits:
Object
  • Object
show all
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

The data included in a domain or series.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChartData

Returns a new instance of ChartData.



2654
2655
2656
# File 'generated/google/apis/sheets_v4/classes.rb', line 2654

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

Instance Attribute Details

#aggregate_typeString

The aggregation type for the series of a data source chart. Not supported for regular charts. Corresponds to the JSON property aggregateType

Returns:

  • (String)


2632
2633
2634
# File 'generated/google/apis/sheets_v4/classes.rb', line 2632

def aggregate_type
  @aggregate_type
end

#column_referenceGoogle::Apis::SheetsV4::DataSourceColumnReference

An unique identifier that references to a data source column. Corresponds to the JSON property columnReference



2637
2638
2639
# File 'generated/google/apis/sheets_v4/classes.rb', line 2637

def column_reference
  @column_reference
end

#group_ruleGoogle::Apis::SheetsV4::ChartGroupRule

An optional setting on the ChartData of the domain of a data source chart that defines buckets for the values in the domain rather than breaking out each individual value. For example, when plotting a data source chart, you can specify a histogram rule on the domain (it should only contain numeric values), grouping its values into buckets. Any values of a chart series that fall into the same bucket are aggregated based on the aggregate_type. Corresponds to the JSON property groupRule



2647
2648
2649
# File 'generated/google/apis/sheets_v4/classes.rb', line 2647

def group_rule
  @group_rule
end

#source_rangeGoogle::Apis::SheetsV4::ChartSourceRange

Source ranges for a chart. Corresponds to the JSON property sourceRange



2652
2653
2654
# File 'generated/google/apis/sheets_v4/classes.rb', line 2652

def source_range
  @source_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2659
2660
2661
2662
2663
2664
# File 'generated/google/apis/sheets_v4/classes.rb', line 2659

def update!(**args)
  @aggregate_type = args[:aggregate_type] if args.key?(:aggregate_type)
  @column_reference = args[:column_reference] if args.key?(:column_reference)
  @group_rule = args[:group_rule] if args.key?(:group_rule)
  @source_range = args[:source_range] if args.key?(:source_range)
end