class Google::Apis::SheetsV4::ChartData

The data included in a domain or series.

Attributes

aggregate_type[RW]

The aggregation type for the series of a data source chart. Only supported for data source charts. Corresponds to the JSON property `aggregateType` @return [String]

column_reference[RW]

An unique identifier that references a data source column. Corresponds to the JSON property `columnReference` @return [Google::Apis::SheetsV4::DataSourceColumnReference]

group_rule[RW]

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` @return [Google::Apis::SheetsV4::ChartGroupRule]

source_range[RW]

Source ranges for a chart. Corresponds to the JSON property `sourceRange` @return [Google::Apis::SheetsV4::ChartSourceRange]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 2780
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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