Class: Google::Apis::SheetsV4::ChartGroupRule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartGroupRule
- 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
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.
2922 2923 2924 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2922 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
2914 2915 2916 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2914 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
2920 2921 2922 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2920 def histogram_rule @histogram_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2927 2928 2929 2930 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2927 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 |