class Google::Apis::SheetsV4::BasicChartSpec

The specification for a basic chart. See BasicChartType for the list of charts this supports.

Attributes

axis[RW]

The axis on the chart. Corresponds to the JSON property `axis` @return [Array<Google::Apis::SheetsV4::BasicChartAxis>]

chart_type[RW]

The type of the chart. Corresponds to the JSON property `chartType` @return [String]

compare_mode[RW]

The behavior of tooltips and data highlighting when hovering on data and chart area. Corresponds to the JSON property `compareMode` @return [String]

domains[RW]

The domain of data this is charting. Only a single domain is supported. Corresponds to the JSON property `domains` @return [Array<Google::Apis::SheetsV4::BasicChartDomain>]

header_count[RW]

The number of rows or columns in the data that are “headers”. If not set, Google Sheets will guess how many rows are headers based on the data. (Note that BasicChartAxis.title may override the axis title inferred from the header values.) Corresponds to the JSON property `headerCount` @return [Fixnum]

interpolate_nulls[RW]

If some values in a series are missing, gaps may appear in the chart (e.g, segments of lines in a line chart will be missing). To eliminate these gaps set this to true. Applies to Line, Area, and Combo charts. Corresponds to the JSON property `interpolateNulls` @return [Boolean]

interpolate_nulls?[RW]

If some values in a series are missing, gaps may appear in the chart (e.g, segments of lines in a line chart will be missing). To eliminate these gaps set this to true. Applies to Line, Area, and Combo charts. Corresponds to the JSON property `interpolateNulls` @return [Boolean]

legend_position[RW]

The position of the chart legend. Corresponds to the JSON property `legendPosition` @return [String]

line_smoothing[RW]

Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts. Corresponds to the JSON property `lineSmoothing` @return [Boolean]

line_smoothing?[RW]

Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts. Corresponds to the JSON property `lineSmoothing` @return [Boolean]

series[RW]

The data this chart is visualizing. Corresponds to the JSON property `series` @return [Array<Google::Apis::SheetsV4::BasicChartSeries>]

stacked_type[RW]

The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts. Corresponds to the JSON property `stackedType` @return [String]

three_dimensional[RW]

True to make the chart 3D. Applies to Bar and Column charts. Corresponds to the JSON property `threeDimensional` @return [Boolean]

three_dimensional?[RW]

True to make the chart 3D. Applies to Bar and Column charts. Corresponds to the JSON property `threeDimensional` @return [Boolean]

total_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 `totalDataLabel` @return [Google::Apis::SheetsV4::DataLabel]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 1335
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 1340
def update!(**args)
  @axis = args[:axis] if args.key?(:axis)
  @chart_type = args[:chart_type] if args.key?(:chart_type)
  @compare_mode = args[:compare_mode] if args.key?(:compare_mode)
  @domains = args[:domains] if args.key?(:domains)
  @header_count = args[:header_count] if args.key?(:header_count)
  @interpolate_nulls = args[:interpolate_nulls] if args.key?(:interpolate_nulls)
  @legend_position = args[:legend_position] if args.key?(:legend_position)
  @line_smoothing = args[:line_smoothing] if args.key?(:line_smoothing)
  @series = args[:series] if args.key?(:series)
  @stacked_type = args[:stacked_type] if args.key?(:stacked_type)
  @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
  @total_data_label = args[:total_data_label] if args.key?(:total_data_label)
end