Class: Google::Apis::SheetsV4::ChartHistogramRule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartHistogramRule
- 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
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.
2957 2958 2959 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2957 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
2941 2942 2943 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2941 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
2948 2949 2950 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2948 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
2955 2956 2957 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2955 def min_value @min_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2962 2963 2964 2965 2966 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2962 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 |