Class: Google::Apis::SheetsV4::WaterfallChartSeries

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 single series of data for 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) ⇒ WaterfallChartSeries

Returns a new instance of WaterfallChartSeries.



10811
10812
10813
# File 'generated/google/apis/sheets_v4/classes.rb', line 10811

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

Instance Attribute Details

#custom_subtotalsArray<Google::Apis::SheetsV4::WaterfallChartCustomSubtotal>

Custom subtotal columns appearing in this series. The order in which subtotals are defined is not significant. Only one subtotal may be defined for each data point. Corresponds to the JSON property customSubtotals



10781
10782
10783
# File 'generated/google/apis/sheets_v4/classes.rb', line 10781

def custom_subtotals
  @custom_subtotals
end

#dataGoogle::Apis::SheetsV4::ChartData

The data included in a domain or series. Corresponds to the JSON property data



10786
10787
10788
# File 'generated/google/apis/sheets_v4/classes.rb', line 10786

def data
  @data
end

#hide_trailing_subtotalBoolean Also known as: hide_trailing_subtotal?

True to hide the subtotal column from the end of the series. By default, a subtotal column will appear at the end of each series. Setting this field to true will hide that subtotal column for this series. Corresponds to the JSON property hideTrailingSubtotal

Returns:

  • (Boolean)


10793
10794
10795
# File 'generated/google/apis/sheets_v4/classes.rb', line 10793

def hide_trailing_subtotal
  @hide_trailing_subtotal
end

#negative_columns_styleGoogle::Apis::SheetsV4::WaterfallChartColumnStyle

Styles for a waterfall chart column. Corresponds to the JSON property negativeColumnsStyle



10799
10800
10801
# File 'generated/google/apis/sheets_v4/classes.rb', line 10799

def negative_columns_style
  @negative_columns_style
end

#positive_columns_styleGoogle::Apis::SheetsV4::WaterfallChartColumnStyle

Styles for a waterfall chart column. Corresponds to the JSON property positiveColumnsStyle



10804
10805
10806
# File 'generated/google/apis/sheets_v4/classes.rb', line 10804

def positive_columns_style
  @positive_columns_style
end

#subtotal_columns_styleGoogle::Apis::SheetsV4::WaterfallChartColumnStyle

Styles for a waterfall chart column. Corresponds to the JSON property subtotalColumnsStyle



10809
10810
10811
# File 'generated/google/apis/sheets_v4/classes.rb', line 10809

def subtotal_columns_style
  @subtotal_columns_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10816
10817
10818
10819
10820
10821
10822
10823
# File 'generated/google/apis/sheets_v4/classes.rb', line 10816

def update!(**args)
  @custom_subtotals = args[:custom_subtotals] if args.key?(:custom_subtotals)
  @data = args[:data] if args.key?(:data)
  @hide_trailing_subtotal = args[:hide_trailing_subtotal] if args.key?(:hide_trailing_subtotal)
  @negative_columns_style = args[:negative_columns_style] if args.key?(:negative_columns_style)
  @positive_columns_style = args[:positive_columns_style] if args.key?(:positive_columns_style)
  @subtotal_columns_style = args[:subtotal_columns_style] if args.key?(:subtotal_columns_style)
end