class Google::Apis::SheetsV4::BasicChartAxis

An axis of the chart. A chart may not have more than one axis per axis position.

Attributes

format[RW]

The format of a run of text in a cell. Absent values indicate that the field isn't specified. Corresponds to the JSON property `format` @return [Google::Apis::SheetsV4::TextFormat]

position[RW]

The position of this axis. Corresponds to the JSON property `position` @return [String]

title[RW]

The title of this axis. If set, this overrides any title inferred from headers of the data. Corresponds to the JSON property `title` @return [String]

title_text_position[RW]

Position settings for text. Corresponds to the JSON property `titleTextPosition` @return [Google::Apis::SheetsV4::TextPosition]

view_window_options[RW]

The options that define a “view window” for a chart (such as the visible values in an axis). Corresponds to the JSON property `viewWindowOptions` @return [Google::Apis::SheetsV4::ChartAxisViewWindowOptions]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 1093
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 1098
def update!(**args)
  @format = args[:format] if args.key?(:format)
  @position = args[:position] if args.key?(:position)
  @title = args[:title] if args.key?(:title)
  @title_text_position = args[:title_text_position] if args.key?(:title_text_position)
  @view_window_options = args[:view_window_options] if args.key?(:view_window_options)
end