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

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

The data included in a domain or series.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChartData

Returns a new instance of ChartData.



2780
2781
2782
# File 'lib/google/apis/sheets_v4/classes.rb', line 2780

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

Instance Attribute Details

#aggregate_typeString

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

Returns:

  • (String)


2758
2759
2760
# File 'lib/google/apis/sheets_v4/classes.rb', line 2758

def aggregate_type
  @aggregate_type
end

#column_referenceGoogle::Apis::SheetsV4::DataSourceColumnReference

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



2763
2764
2765
# File 'lib/google/apis/sheets_v4/classes.rb', line 2763

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



2773
2774
2775
# File 'lib/google/apis/sheets_v4/classes.rb', line 2773

def group_rule
  @group_rule
end

#source_rangeGoogle::Apis::SheetsV4::ChartSourceRange

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



2778
2779
2780
# File 'lib/google/apis/sheets_v4/classes.rb', line 2778

def source_range
  @source_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2785
2786
2787
2788
2789
2790
# File 'lib/google/apis/sheets_v4/classes.rb', line 2785

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