Class: Google::Apis::SheetsV4::PieChartSpec
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SheetsV4::PieChartSpec
 
- 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
A pie chart.
Instance Attribute Summary collapse
- 
  
    
      #domain  ⇒ Google::Apis::SheetsV4::ChartData 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The data included in a domain or series. 
- 
  
    
      #legend_position  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Where the legend of the pie chart should be drawn. 
- 
  
    
      #pie_hole  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The size of the hole in the pie chart. 
- 
  
    
      #series  ⇒ Google::Apis::SheetsV4::ChartData 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The data included in a domain or series. 
- 
  
    
      #three_dimensional  ⇒ Boolean 
    
    
      (also: #three_dimensional?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the pie is three dimensional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PieChartSpec 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PieChartSpec. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PieChartSpec
Returns a new instance of PieChartSpec
| 6276 6277 6278 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6276 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#domain ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property domain
| 6253 6254 6255 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6253 def domain @domain end | 
#legend_position ⇒ String
Where the legend of the pie chart should be drawn.
Corresponds to the JSON property legendPosition
| 6258 6259 6260 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6258 def legend_position @legend_position end | 
#pie_hole ⇒ Float
The size of the hole in the pie chart.
Corresponds to the JSON property pieHole
| 6263 6264 6265 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6263 def pie_hole @pie_hole end | 
#series ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property series
| 6268 6269 6270 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6268 def series @series end | 
#three_dimensional ⇒ Boolean Also known as: three_dimensional?
True if the pie is three dimensional.
Corresponds to the JSON property threeDimensional
| 6273 6274 6275 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6273 def three_dimensional @three_dimensional end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 6281 6282 6283 6284 6285 6286 6287 | # File 'generated/google/apis/sheets_v4/classes.rb', line 6281 def update!(**args) @domain = args[:domain] if args.key?(:domain) @legend_position = args[:legend_position] if args.key?(:legend_position) @pie_hole = args[:pie_hole] if args.key?(:pie_hole) @series = args[:series] if args.key?(:series) @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional) end |