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.
2869 2870 2871 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2869 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
2853 2854 2855 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2853 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
2860 2861 2862 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2860 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
2867 2868 2869 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2867 def min_value @min_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2874 2875 2876 2877 2878 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 2874 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 |