class Google::Apis::FusiontablesV2::StyleFunction

Represents a StyleFunction within a StyleSetting

Attributes

buckets[RW]

Bucket function that assigns a style based on the range a column value falls into. Corresponds to the JSON property `buckets` @return [Array<Google::Apis::FusiontablesV2::Bucket>]

column_name[RW]

Name of the column whose value is used in the style. Corresponds to the JSON property `columnName` @return [String]

gradient[RW]

Gradient function that interpolates a range of colors based on column value. Corresponds to the JSON property `gradient` @return [Google::Apis::FusiontablesV2::StyleFunction::Gradient]

kind[RW]

Stylers can be one of three kinds: “fusiontables#fromColumn if the column value is to be used as is, i.e., the column values can have colors in # RRGGBBAA format or integer line widths or icon names; fusiontables#gradient if the styling of the row is to be based on applying the gradient function on the column value; or fusiontables#buckets if the styling is to based on the bucket into which the the column value falls. Corresponds to the JSON property `kind` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 579
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 584
def update!(**args)
  @buckets = args[:buckets] if args.key?(:buckets)
  @column_name = args[:column_name] if args.key?(:column_name)
  @gradient = args[:gradient] if args.key?(:gradient)
  @kind = args[:kind] if args.key?(:kind)
end