Class: Google::Apis::SheetsV4::ChartHistogramRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_sizeFloat

The size of the buckets that are created. Must be positive. Corresponds to the JSON property intervalSize

Returns:

  • (Float)


2853
2854
2855
# File 'lib/google/apis/sheets_v4/classes.rb', line 2853

def interval_size
  @interval_size
end

#max_valueFloat

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

Returns:

  • (Float)


2860
2861
2862
# File 'lib/google/apis/sheets_v4/classes.rb', line 2860

def max_value
  @max_value
end

#min_valueFloat

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

Returns:

  • (Float)


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