class Google::Apis::SheetsV4::WaterfallChartSeries

A single series of data for a waterfall chart.

Attributes

custom_subtotals[RW]

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` @return [Array<Google::Apis::SheetsV4::WaterfallChartCustomSubtotal>]

data[RW]

The data included in a domain or series. Corresponds to the JSON property `data` @return [Google::Apis::SheetsV4::ChartData]

data_label[RW]

Settings for one set of data labels. Data labels are annotations that appear next to a set of data, such as the points on a line chart, and provide additional information about what the data represents, such as a text representation of the value behind that point on the graph. Corresponds to the JSON property `dataLabel` @return [Google::Apis::SheetsV4::DataLabel]

hide_trailing_subtotal[RW]

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` @return [Boolean]

hide_trailing_subtotal?[RW]

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` @return [Boolean]

negative_columns_style[RW]

Styles for a waterfall chart column. Corresponds to the JSON property `negativeColumnsStyle` @return [Google::Apis::SheetsV4::WaterfallChartColumnStyle]

positive_columns_style[RW]

Styles for a waterfall chart column. Corresponds to the JSON property `positiveColumnsStyle` @return [Google::Apis::SheetsV4::WaterfallChartColumnStyle]

subtotal_columns_style[RW]

Styles for a waterfall chart column. Corresponds to the JSON property `subtotalColumnsStyle` @return [Google::Apis::SheetsV4::WaterfallChartColumnStyle]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 11243
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 11248
def update!(**args)
  @custom_subtotals = args[:custom_subtotals] if args.key?(:custom_subtotals)
  @data = args[:data] if args.key?(:data)
  @data_label = args[:data_label] if args.key?(:data_label)
  @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