Class: Google::Apis::SheetsV4::DataLabel
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DataLabel
- 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
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.
Instance Attribute Summary collapse
-
#custom_label_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
-
#placement ⇒ String
The placement of the data label relative to the labeled data.
-
#text_format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell.
-
#type ⇒ String
The type of the data label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataLabel
constructor
A new instance of DataLabel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataLabel
Returns a new instance of DataLabel.
3745 3746 3747 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3745 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_label_data ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property customLabelData
3727 3728 3729 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3727 def custom_label_data @custom_label_data end |
#placement ⇒ String
The placement of the data label relative to the labeled data.
Corresponds to the JSON property placement
3732 3733 3734 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3732 def placement @placement end |
#text_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 textFormat
3738 3739 3740 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3738 def text_format @text_format end |
#type ⇒ String
The type of the data label.
Corresponds to the JSON property type
3743 3744 3745 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3743 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3750 3751 3752 3753 3754 3755 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3750 def update!(**args) @custom_label_data = args[:custom_label_data] if args.key?(:custom_label_data) @placement = args[:placement] if args.key?(:placement) @text_format = args[:text_format] if args.key?(:text_format) @type = args[:type] if args.key?(:type) end |