Class: Google::Apis::SheetsV4::ChartSpec
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartSpec
- 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
The specifications of a chart.
Instance Attribute Summary collapse
-
#basic_chart ⇒ Google::Apis::SheetsV4::BasicChartSpec
The specification for a basic chart.
-
#hidden_dimension_strategy ⇒ String
Determines how the charts will use hidden rows or columns.
-
#pie_chart ⇒ Google::Apis::SheetsV4::PieChartSpec
A pie chart.
-
#title ⇒ String
The title of the chart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartSpec
constructor
A new instance of ChartSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChartSpec
Returns a new instance of ChartSpec
4364 4365 4366 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4364 def initialize(**args) update!(**args) end |
Instance Attribute Details
#basic_chart ⇒ Google::Apis::SheetsV4::BasicChartSpec
The specification for a basic chart. See BasicChartType for the list
of charts this supports.
Corresponds to the JSON property basicChart
4352 4353 4354 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4352 def basic_chart @basic_chart end |
#hidden_dimension_strategy ⇒ String
Determines how the charts will use hidden rows or columns.
Corresponds to the JSON property hiddenDimensionStrategy
4357 4358 4359 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4357 def hidden_dimension_strategy @hidden_dimension_strategy end |
#pie_chart ⇒ Google::Apis::SheetsV4::PieChartSpec
A pie chart.
Corresponds to the JSON property pieChart
4346 4347 4348 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4346 def pie_chart @pie_chart end |
#title ⇒ String
The title of the chart.
Corresponds to the JSON property title
4362 4363 4364 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4362 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4369 4370 4371 4372 4373 4374 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4369 def update!(**args) @pie_chart = args[:pie_chart] if args.key?(:pie_chart) @basic_chart = args[:basic_chart] if args.key?(:basic_chart) @hidden_dimension_strategy = args[:hidden_dimension_strategy] if args.key?(:hidden_dimension_strategy) @title = args[:title] if args.key?(:title) end |