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.



2868
2869
2870
# File 'lib/google/apis/sheets_v4/classes.rb', line 2868

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)


2846
2847
2848
# File 'lib/google/apis/sheets_v4/classes.rb', line 2846

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



2851
2852
2853
# File 'lib/google/apis/sheets_v4/classes.rb', line 2851

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



2861
2862
2863
# File 'lib/google/apis/sheets_v4/classes.rb', line 2861

def group_rule
  @group_rule
end

#source_rangeGoogle::Apis::SheetsV4::ChartSourceRange

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



2866
2867
2868
# File 'lib/google/apis/sheets_v4/classes.rb', line 2866

def source_range
  @source_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2873
2874
2875
2876
2877
2878
# File 'lib/google/apis/sheets_v4/classes.rb', line 2873

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