Class: Google::Apis::SheetsV4::ChartHistogramRule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartHistogramRule
- 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
Allows you to organize numeric values in a source data column into buckets of constant size.
Instance Attribute Summary collapse
-
#interval_size ⇒ Float
The size of the buckets that are created.
-
#max_value ⇒ Float
The maximum value at which items are placed into buckets.
-
#min_value ⇒ Float
The minimum value at which items are placed into buckets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartHistogramRule
constructor
A new instance of ChartHistogramRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChartHistogramRule
Returns a new instance of ChartHistogramRule.
2866 2867 2868 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2866 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval_size ⇒ Float
The size of the buckets that are created. Must be positive.
Corresponds to the JSON property intervalSize
2850 2851 2852 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2850 def interval_size @interval_size end |
#max_value ⇒ Float
The maximum value at which items are placed into buckets. Values greater than
the maximum are grouped into a single bucket. If omitted, it is determined by
the maximum item value.
Corresponds to the JSON property maxValue
2857 2858 2859 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2857 def max_value @max_value end |
#min_value ⇒ Float
The minimum value at which items are placed into buckets. Values that are less
than the minimum are grouped into a single bucket. If omitted, it is
determined by the minimum item value.
Corresponds to the JSON property minValue
2864 2865 2866 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2864 def min_value @min_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2871 2872 2873 2874 2875 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2871 def update!(**args) @interval_size = args[:interval_size] if args.key?(:interval_size) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) end |