class Google::Apis::FusiontablesV2::StyleFunction::Gradient
Gradient function that interpolates a range of colors based on column value.
Attributes
colors[RW]
Array with two or more colors. Corresponds to the JSON property `colors` @return [Array<Google::Apis::FusiontablesV2::StyleFunction::Gradient::Color>]
max[RW]
Higher-end of the interpolation range: rows with this value will be assigned to colors. Corresponds to the JSON property `max` @return [Float]
min[RW]
Lower-end of the interpolation range: rows with this value will be assigned to colors. Corresponds to the JSON property `min` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 612 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/fusiontables_v2/classes.rb, line 617 def update!(**args) @colors = args[:colors] if args.key?(:colors) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) end