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



3609
3610
3611
# File 'generated/google/apis/sheets_v4/classes.rb', line 3609

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



3597
3598
3599
# File 'generated/google/apis/sheets_v4/classes.rb', line 3597

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)


3602
3603
3604
# File 'generated/google/apis/sheets_v4/classes.rb', line 3602

def hidden_dimension_strategy
  @hidden_dimension_strategy
end

#pie_chartGoogle::Apis::SheetsV4::PieChartSpec

A pie chart. Corresponds to the JSON property pieChart



3591
3592
3593
# File 'generated/google/apis/sheets_v4/classes.rb', line 3591

def pie_chart
  @pie_chart
end

#titleString

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

Returns:

  • (String)


3607
3608
3609
# File 'generated/google/apis/sheets_v4/classes.rb', line 3607

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3614
3615
3616
3617
3618
3619
# File 'generated/google/apis/sheets_v4/classes.rb', line 3614

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