Class: Google::Apis::SheetsV4::WaterfallChartSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb

Overview

A waterfall chart.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WaterfallChartSpec

Returns a new instance of WaterfallChartSpec



8718
8719
8720
# File 'generated/google/apis/sheets_v4/classes.rb', line 8718

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#connector_line_styleGoogle::Apis::SheetsV4::LineStyle

Properties that describe the style of a line. Corresponds to the JSON property connectorLineStyle



8689
8690
8691
# File 'generated/google/apis/sheets_v4/classes.rb', line 8689

def connector_line_style
  @connector_line_style
end

#domainGoogle::Apis::SheetsV4::WaterfallChartDomain

The domain of a waterfall chart. Corresponds to the JSON property domain



8694
8695
8696
# File 'generated/google/apis/sheets_v4/classes.rb', line 8694

def domain
  @domain
end

#first_value_is_totalBoolean Also known as: first_value_is_total?

True to interpret the first value as a total. Corresponds to the JSON property firstValueIsTotal

Returns:

  • (Boolean)


8699
8700
8701
# File 'generated/google/apis/sheets_v4/classes.rb', line 8699

def first_value_is_total
  @first_value_is_total
end

#hide_connector_linesBoolean Also known as: hide_connector_lines?

True to hide connector lines between columns. Corresponds to the JSON property hideConnectorLines

Returns:

  • (Boolean)


8705
8706
8707
# File 'generated/google/apis/sheets_v4/classes.rb', line 8705

def hide_connector_lines
  @hide_connector_lines
end

#seriesArray<Google::Apis::SheetsV4::WaterfallChartSeries>

The data this waterfall chart is visualizing. Corresponds to the JSON property series



8711
8712
8713
# File 'generated/google/apis/sheets_v4/classes.rb', line 8711

def series
  @series
end

#stacked_typeString

The stacked type. Corresponds to the JSON property stackedType

Returns:

  • (String)


8716
8717
8718
# File 'generated/google/apis/sheets_v4/classes.rb', line 8716

def stacked_type
  @stacked_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8723
8724
8725
8726
8727
8728
8729
8730
# File 'generated/google/apis/sheets_v4/classes.rb', line 8723

def update!(**args)
  @connector_line_style = args[:connector_line_style] if args.key?(:connector_line_style)
  @domain = args[:domain] if args.key?(:domain)
  @first_value_is_total = args[:first_value_is_total] if args.key?(:first_value_is_total)
  @hide_connector_lines = args[:hide_connector_lines] if args.key?(:hide_connector_lines)
  @series = args[:series] if args.key?(:series)
  @stacked_type = args[:stacked_type] if args.key?(:stacked_type)
end