Class: Google::Apis::SheetsV4::BasicChartAxis
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::BasicChartAxis
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
An axis of the chart. A chart may not have more than one axis per axis position.
Instance Attribute Summary collapse
-
#format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell.
-
#position ⇒ String
The position of this axis.
-
#title ⇒ String
The title of this axis.
-
#title_text_position ⇒ Google::Apis::SheetsV4::TextPosition
Position settings for text.
-
#view_window_options ⇒ Google::Apis::SheetsV4::ChartAxisViewWindowOptions
The options that define a "view window" for a chart (such as the visible values in an axis).
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicChartAxis
constructor
A new instance of BasicChartAxis.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BasicChartAxis
Returns a new instance of BasicChartAxis.
1145 1146 1147 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#format ⇒ Google::Apis::SheetsV4::TextFormat
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
1121 1122 1123 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1121 def format @format end |
#position ⇒ String
The position of this axis.
Corresponds to the JSON property position
1126 1127 1128 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1126 def position @position end |
#title ⇒ String
The title of this axis. If set, this overrides any title inferred from headers
of the data.
Corresponds to the JSON property title
1132 1133 1134 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1132 def title @title end |
#title_text_position ⇒ Google::Apis::SheetsV4::TextPosition
Position settings for text.
Corresponds to the JSON property titleTextPosition
1137 1138 1139 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1137 def title_text_position @title_text_position end |
#view_window_options ⇒ Google::Apis::SheetsV4::ChartAxisViewWindowOptions
The options that define a "view window" for a chart (such as the visible
values in an axis).
Corresponds to the JSON property viewWindowOptions
1143 1144 1145 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1143 def @view_window_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1150 1151 1152 1153 1154 1155 1156 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1150 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 |