Class: Google::Apis::SheetsV4::PieChartSpec

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

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) ⇒ PieChartSpec

Returns a new instance of PieChartSpec.



4884
4885
4886
# File 'generated/google/apis/sheets_v4/classes.rb', line 4884

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

Instance Attribute Details

#domainGoogle::Apis::SheetsV4::ChartData

The data included in a domain or series. Corresponds to the JSON property domain



4882
4883
4884
# File 'generated/google/apis/sheets_v4/classes.rb', line 4882

def domain
  @domain
end

#legend_positionString

Where the legend of the pie chart should be drawn. Corresponds to the JSON property legendPosition

Returns:

  • (String)


4861
4862
4863
# File 'generated/google/apis/sheets_v4/classes.rb', line 4861

def legend_position
  @legend_position
end

#pie_holeFloat

The size of the hole in the pie chart. Corresponds to the JSON property pieHole

Returns:

  • (Float)


4871
4872
4873
# File 'generated/google/apis/sheets_v4/classes.rb', line 4871

def pie_hole
  @pie_hole
end

#seriesGoogle::Apis::SheetsV4::ChartData

The data included in a domain or series. Corresponds to the JSON property series



4866
4867
4868
# File 'generated/google/apis/sheets_v4/classes.rb', line 4866

def series
  @series
end

#three_dimensionalBoolean Also known as: three_dimensional?

True if the pie is three dimensional. Corresponds to the JSON property threeDimensional

Returns:

  • (Boolean)


4876
4877
4878
# File 'generated/google/apis/sheets_v4/classes.rb', line 4876

def three_dimensional
  @three_dimensional
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4889
4890
4891
4892
4893
4894
4895
# File 'generated/google/apis/sheets_v4/classes.rb', line 4889

def update!(**args)
  @legend_position = args[:legend_position] if args.key?(:legend_position)
  @series = args[:series] if args.key?(:series)
  @pie_hole = args[:pie_hole] if args.key?(:pie_hole)
  @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
  @domain = args[:domain] if args.key?(:domain)
end