Class: Google::Apis::SheetsV4::ChartGroupRule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartGroupRule
- 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
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.
Instance Attribute Summary collapse
-
#date_time_rule ⇒ Google::Apis::SheetsV4::ChartDateTimeRule
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.
-
#histogram_rule ⇒ Google::Apis::SheetsV4::ChartHistogramRule
Allows you to organize numeric values in a source data column into buckets of constant size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartGroupRule
constructor
A new instance of ChartGroupRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChartGroupRule
Returns a new instance of ChartGroupRule.
2831 2832 2833 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2831 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_time_rule ⇒ Google::Apis::SheetsV4::ChartDateTimeRule
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
2823 2824 2825 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2823 def date_time_rule @date_time_rule end |
#histogram_rule ⇒ Google::Apis::SheetsV4::ChartHistogramRule
Allows you to organize numeric values in a source data column into buckets of
constant size.
Corresponds to the JSON property histogramRule
2829 2830 2831 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2829 def histogram_rule @histogram_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2836 2837 2838 2839 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2836 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 |