class Google::Apis::SheetsV4::DataLabel
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.
Attributes
The data included in a domain or series. Corresponds to the JSON property `customLabelData` @return [Google::Apis::SheetsV4::ChartData]
The placement of the data label relative to the labeled data. Corresponds to the JSON property `placement` @return [String]
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` @return [Google::Apis::SheetsV4::TextFormat]
The type of the data label. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/sheets_v4/classes.rb, line 3747 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 3752 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