Class: Google::Apis::SheetsV4::BasicChartAxis
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::BasicChartAxis
- 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
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicChartAxis
constructor
A new instance of BasicChartAxis.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BasicChartAxis
Returns a new instance of BasicChartAxis
86 87 88 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 86 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
84 85 86 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 84 def format @format end |
#position ⇒ String
The position of this axis.
Corresponds to the JSON property position
72 73 74 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 72 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
78 79 80 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 78 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
91 92 93 94 95 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 91 def update!(**args) @position = args[:position] if args.key?(:position) @title = args[:title] if args.key?(:title) @format = args[:format] if args.key?(:format) end |