Class: Google::Apis::SheetsV4::ChartSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChartSpec

Returns a new instance of ChartSpec.



3013
3014
3015
# File 'generated/google/apis/sheets_v4/classes.rb', line 3013

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#basic_chartGoogle::Apis::SheetsV4::BasicChartSpec

The specification for a basic chart. See BasicChartType for the list of charts this supports. Corresponds to the JSON property basicChart



3001
3002
3003
# File 'generated/google/apis/sheets_v4/classes.rb', line 3001

def basic_chart
  @basic_chart
end

#hidden_dimension_strategyString

Determines how the charts will use hidden rows or columns. Corresponds to the JSON property hiddenDimensionStrategy

Returns:

  • (String)


2995
2996
2997
# File 'generated/google/apis/sheets_v4/classes.rb', line 2995

def hidden_dimension_strategy
  @hidden_dimension_strategy
end

#pie_chartGoogle::Apis::SheetsV4::PieChartSpec

A pie chart. Corresponds to the JSON property pieChart



3011
3012
3013
# File 'generated/google/apis/sheets_v4/classes.rb', line 3011

def pie_chart
  @pie_chart
end

#titleString

The title of the chart. Corresponds to the JSON property title

Returns:

  • (String)


3006
3007
3008
# File 'generated/google/apis/sheets_v4/classes.rb', line 3006

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3018
3019
3020
3021
3022
3023
# File 'generated/google/apis/sheets_v4/classes.rb', line 3018

def update!(**args)
  @hidden_dimension_strategy = args[:hidden_dimension_strategy] if args.key?(:hidden_dimension_strategy)
  @basic_chart = args[:basic_chart] if args.key?(:basic_chart)
  @title = args[:title] if args.key?(:title)
  @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
end