class Google::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.

Attributes

date_time_rule[RW]

Allows you to organize the date-time values in a source data column into buckets based on selected parts of their date or time values. Corresponds to the JSON property `dateTimeRule` @return [Google::Apis::SheetsV4::ChartDateTimeRule]

histogram_rule[RW]

Allows you to organize numeric values in a source data column into buckets of constant size. Corresponds to the JSON property `histogramRule` @return [Google::Apis::SheetsV4::ChartHistogramRule]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 2834
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 2839
def update!(**args)
  @date_time_rule = args[:date_time_rule] if args.key?(:date_time_rule)
  @histogram_rule = args[:histogram_rule] if args.key?(:histogram_rule)
end