Class: AsposeCellsCloud::Chart

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cells_cloud/models/chart.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Chart

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
# File 'lib/aspose_cells_cloud/models/chart.rb', line 260

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'link')
    self.link = attributes[:'link']
  end

  if attributes.has_key?(:'FirstSliceAngle')
    self.first_slice_angle = attributes[:'FirstSliceAngle']
  end

  if attributes.has_key?(:'Floor')
    self.floor = attributes[:'Floor']
  end

  if attributes.has_key?(:'PlotEmptyCellsType')
    self.plot_empty_cells_type = attributes[:'PlotEmptyCellsType']
  end

  if attributes.has_key?(:'AutoScaling')
    self.auto_scaling = attributes[:'AutoScaling']
  end

  if attributes.has_key?(:'Style')
    self.style = attributes[:'Style']
  end

  if attributes.has_key?(:'SeriesAxis')
    self.series_axis = attributes[:'SeriesAxis']
  end

  if attributes.has_key?(:'ValueAxis')
    self.value_axis = attributes[:'ValueAxis']
  end

  if attributes.has_key?(:'ShowDataTable')
    self.show_data_table = attributes[:'ShowDataTable']
  end

  if attributes.has_key?(:'Is3D')
    self.is3_d = attributes[:'Is3D']
  end

  if attributes.has_key?(:'ChartArea')
    self.chart_area = attributes[:'ChartArea']
  end

  if attributes.has_key?(:'Elevation')
    self.elevation = attributes[:'Elevation']
  end

  if attributes.has_key?(:'SideWall')
    self.side_wall = attributes[:'SideWall']
  end

  if attributes.has_key?(:'Type')
    self.type = attributes[:'Type']
  end

  if attributes.has_key?(:'Title')
    self.title = attributes[:'Title']
  end

  if attributes.has_key?(:'Walls')
    self.walls = attributes[:'Walls']
  end

  if attributes.has_key?(:'BackWall')
    self.back_wall = attributes[:'BackWall']
  end

  if attributes.has_key?(:'ChartDataTable')
    self.chart_data_table = attributes[:'ChartDataTable']
  end

  if attributes.has_key?(:'HeightPercent')
    self.height_percent = attributes[:'HeightPercent']
  end

  if attributes.has_key?(:'GapWidth')
    self.gap_width = attributes[:'GapWidth']
  end

  if attributes.has_key?(:'Legend')
    self.legend = attributes[:'Legend']
  end

  if attributes.has_key?(:'ChartObject')
    self.chart_object = attributes[:'ChartObject']
  end

  if attributes.has_key?(:'IsRectangularCornered')
    self.is_rectangular_cornered = attributes[:'IsRectangularCornered']
  end

  if attributes.has_key?(:'SecondCategoryAxis')
    self.second_category_axis = attributes[:'SecondCategoryAxis']
  end

  if attributes.has_key?(:'SecondValueAxis')
    self.second_value_axis = attributes[:'SecondValueAxis']
  end

  if attributes.has_key?(:'Placement')
    self.placement = attributes[:'Placement']
  end

  if attributes.has_key?(:'Name')
    self.name = attributes[:'Name']
  end

  if attributes.has_key?(:'SizeWithWindow')
    self.size_with_window = attributes[:'SizeWithWindow']
  end

  if attributes.has_key?(:'RightAngleAxes')
    self.right_angle_axes = attributes[:'RightAngleAxes']
  end

  if attributes.has_key?(:'PlotVisibleCells')
    self.plot_visible_cells = attributes[:'PlotVisibleCells']
  end

  if attributes.has_key?(:'ShowLegend')
    self.show_legend = attributes[:'ShowLegend']
  end

  if attributes.has_key?(:'PivotSource')
    self.pivot_source = attributes[:'PivotSource']
  end

  if attributes.has_key?(:'DepthPercent')
    self.depth_percent = attributes[:'DepthPercent']
  end

  if attributes.has_key?(:'PrintSize')
    self.print_size = attributes[:'PrintSize']
  end

  if attributes.has_key?(:'GapDepth')
    self.gap_depth = attributes[:'GapDepth']
  end

  if attributes.has_key?(:'Shapes')
    self.shapes = attributes[:'Shapes']
  end

  if attributes.has_key?(:'WallsAndGridlines2D')
    self.walls_and_gridlines2_d = attributes[:'WallsAndGridlines2D']
  end

  if attributes.has_key?(:'NSeries')
    self.n_series = attributes[:'NSeries']
  end

  if attributes.has_key?(:'RotationAngle')
    self.rotation_angle = attributes[:'RotationAngle']
  end

  if attributes.has_key?(:'PlotArea')
    self.plot_area = attributes[:'PlotArea']
  end

  if attributes.has_key?(:'CategoryAxis')
    self.category_axis = attributes[:'CategoryAxis']
  end

  if attributes.has_key?(:'Perspective')
    self.perspective = attributes[:'Perspective']
  end

  if attributes.has_key?(:'HidePivotFieldButtons')
    self.hide_pivot_field_buttons = attributes[:'HidePivotFieldButtons']
  end

  if attributes.has_key?(:'PageSetup')
    self.page_setup = attributes[:'PageSetup']
  end

end

Instance Attribute Details

#auto_scalingObject

True if Microsoft Excel scales a 3-D chart so that it’s closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True.



40
41
42
# File 'lib/aspose_cells_cloud/models/chart.rb', line 40

def auto_scaling
  @auto_scaling
end

#back_wallObject

Returns the value of attribute back_wall.



74
75
76
# File 'lib/aspose_cells_cloud/models/chart.rb', line 74

def back_wall
  @back_wall
end

#category_axisObject

Gets the chart’s X axis. The property is read only



146
147
148
# File 'lib/aspose_cells_cloud/models/chart.rb', line 146

def category_axis
  @category_axis
end

#chart_areaObject

Gets the chart area in the worksheet



58
59
60
# File 'lib/aspose_cells_cloud/models/chart.rb', line 58

def chart_area
  @chart_area
end

#chart_data_tableObject

Represents the chart data table.



77
78
79
# File 'lib/aspose_cells_cloud/models/chart.rb', line 77

def chart_data_table
  @chart_data_table
end

#chart_objectObject

Represents the chartShape;



89
90
91
# File 'lib/aspose_cells_cloud/models/chart.rb', line 89

def chart_object
  @chart_object
end

#depth_percentObject

Represents the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).



122
123
124
# File 'lib/aspose_cells_cloud/models/chart.rb', line 122

def depth_percent
  @depth_percent
end

#elevationObject

Represents the elevation of the 3-D chart view, in degrees.



61
62
63
# File 'lib/aspose_cells_cloud/models/chart.rb', line 61

def elevation
  @elevation
end

#first_slice_angleObject

Gets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical). Applies only to pie, 3-D pie, and doughnut charts, 0 to 360.



31
32
33
# File 'lib/aspose_cells_cloud/models/chart.rb', line 31

def first_slice_angle
  @first_slice_angle
end

#floorObject

Returns a Floor object that represents the walls of a 3-D chart.



34
35
36
# File 'lib/aspose_cells_cloud/models/chart.rb', line 34

def floor
  @floor
end

#gap_depthObject

Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width.The value of this property must be between 0 and 500.



128
129
130
# File 'lib/aspose_cells_cloud/models/chart.rb', line 128

def gap_depth
  @gap_depth
end

#gap_widthObject

Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500.



83
84
85
# File 'lib/aspose_cells_cloud/models/chart.rb', line 83

def gap_width
  @gap_width
end

#height_percentObject

Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).



80
81
82
# File 'lib/aspose_cells_cloud/models/chart.rb', line 80

def height_percent
  @height_percent
end

#hide_pivot_field_buttonsObject

Indicates whether hide the pivot chart field buttons only when the chart is PivotChart



152
153
154
# File 'lib/aspose_cells_cloud/models/chart.rb', line 152

def hide_pivot_field_buttons
  @hide_pivot_field_buttons
end

#is3_dObject

Indicates whether the chart is a 3d chart.



55
56
57
# File 'lib/aspose_cells_cloud/models/chart.rb', line 55

def is3_d
  @is3_d
end

#is_rectangular_corneredObject

Gets or sets a value indicating whether the chart displays a data table.



92
93
94
# File 'lib/aspose_cells_cloud/models/chart.rb', line 92

def is_rectangular_cornered
  @is_rectangular_cornered
end

#legendObject

Gets the chart legend.



86
87
88
# File 'lib/aspose_cells_cloud/models/chart.rb', line 86

def legend
  @legend
end

Returns the value of attribute link.



28
29
30
# File 'lib/aspose_cells_cloud/models/chart.rb', line 28

def link
  @link
end

#n_seriesObject

Gets a SeriesCollection collection representing the data series in the chart.



137
138
139
# File 'lib/aspose_cells_cloud/models/chart.rb', line 137

def n_series
  @n_series
end

#nameObject

Gets and sets the name of the chart.



104
105
106
# File 'lib/aspose_cells_cloud/models/chart.rb', line 104

def name
  @name
end

#page_setupObject

Represents the page setup description in this chart.



155
156
157
# File 'lib/aspose_cells_cloud/models/chart.rb', line 155

def page_setup
  @page_setup
end

#perspectiveObject

Returns or sets the perspective for the 3-D chart view. Must be between 0 and 100.This property is ignored if the RightAngleAxes property is True.



149
150
151
# File 'lib/aspose_cells_cloud/models/chart.rb', line 149

def perspective
  @perspective
end

#pivot_sourceObject

The source is the data of the pivotTable.If PivotSource is not empty ,the chart is PivotChart.



119
120
121
# File 'lib/aspose_cells_cloud/models/chart.rb', line 119

def pivot_source
  @pivot_source
end

#placementObject

Represents the way the chart is attached to the cells below it.



101
102
103
# File 'lib/aspose_cells_cloud/models/chart.rb', line 101

def placement
  @placement
end

#plot_areaObject

Gets the chart’s plot area which includes axis tick lables.



143
144
145
# File 'lib/aspose_cells_cloud/models/chart.rb', line 143

def plot_area
  @plot_area
end

#plot_empty_cells_typeObject

Gets and sets how to plot the empty cells.



37
38
39
# File 'lib/aspose_cells_cloud/models/chart.rb', line 37

def plot_empty_cells_type
  @plot_empty_cells_type
end

#plot_visible_cellsObject

Indicates whether only plot visible cells.



113
114
115
# File 'lib/aspose_cells_cloud/models/chart.rb', line 113

def plot_visible_cells
  @plot_visible_cells
end

Gets and sets the printed chart size.



125
126
127
# File 'lib/aspose_cells_cloud/models/chart.rb', line 125

def print_size
  @print_size
end

#right_angle_axesObject

True if the chart axes are at right angles.Applies only for 3-D charts(except Column3D and 3-D Pie Charts).



110
111
112
# File 'lib/aspose_cells_cloud/models/chart.rb', line 110

def right_angle_axes
  @right_angle_axes
end

#rotation_angleObject

Represents the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees).



140
141
142
# File 'lib/aspose_cells_cloud/models/chart.rb', line 140

def rotation_angle
  @rotation_angle
end

#second_category_axisObject

Gets the chart’s second X axis.



95
96
97
# File 'lib/aspose_cells_cloud/models/chart.rb', line 95

def second_category_axis
  @second_category_axis
end

#second_value_axisObject

Gets the chart’s second Y axis.



98
99
100
# File 'lib/aspose_cells_cloud/models/chart.rb', line 98

def second_value_axis
  @second_value_axis
end

#series_axisObject

Gets the chart’s series axis.



46
47
48
# File 'lib/aspose_cells_cloud/models/chart.rb', line 46

def series_axis
  @series_axis
end

#shapesObject

Returns all drawing shapes in this chart.



131
132
133
# File 'lib/aspose_cells_cloud/models/chart.rb', line 131

def shapes
  @shapes
end

#show_data_tableObject

Gets or sets a value indicating whether the chart displays a data table.



52
53
54
# File 'lib/aspose_cells_cloud/models/chart.rb', line 52

def show_data_table
  @show_data_table
end

#show_legendObject

Gets or sets a value indicating whether the chart legend will be displayed. Default is true.



116
117
118
# File 'lib/aspose_cells_cloud/models/chart.rb', line 116

def show_legend
  @show_legend
end

#side_wallObject

Returns the value of attribute side_wall.



63
64
65
# File 'lib/aspose_cells_cloud/models/chart.rb', line 63

def side_wall
  @side_wall
end

#size_with_windowObject

True if Microsoft Excel resizes the chart to match the size of the chart sheet window.



107
108
109
# File 'lib/aspose_cells_cloud/models/chart.rb', line 107

def size_with_window
  @size_with_window
end

#styleObject

Gets and sets the builtin style.



43
44
45
# File 'lib/aspose_cells_cloud/models/chart.rb', line 43

def style
  @style
end

#titleObject

Gets the chart’s title.



69
70
71
# File 'lib/aspose_cells_cloud/models/chart.rb', line 69

def title
  @title
end

#typeObject

Gets or sets a chart’s type.



66
67
68
# File 'lib/aspose_cells_cloud/models/chart.rb', line 66

def type
  @type
end

#value_axisObject

Gets the chart’s Y axis.



49
50
51
# File 'lib/aspose_cells_cloud/models/chart.rb', line 49

def value_axis
  @value_axis
end

#wallsObject

Returns a Walls object that represents the walls of a 3-D chart.



72
73
74
# File 'lib/aspose_cells_cloud/models/chart.rb', line 72

def walls
  @walls
end

#walls_and_gridlines2_dObject

True if gridlines are drawn two-dimensionally on a 3-D chart.



134
135
136
# File 'lib/aspose_cells_cloud/models/chart.rb', line 134

def walls_and_gridlines2_d
  @walls_and_gridlines2_d
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# File 'lib/aspose_cells_cloud/models/chart.rb', line 159

def self.attribute_map
  {
    :'link' => :'link',
    :'first_slice_angle' => :'FirstSliceAngle',
    :'floor' => :'Floor',
    :'plot_empty_cells_type' => :'PlotEmptyCellsType',
    :'auto_scaling' => :'AutoScaling',
    :'style' => :'Style',
    :'series_axis' => :'SeriesAxis',
    :'value_axis' => :'ValueAxis',
    :'show_data_table' => :'ShowDataTable',
    :'is3_d' => :'Is3D',
    :'chart_area' => :'ChartArea',
    :'elevation' => :'Elevation',
    :'side_wall' => :'SideWall',
    :'type' => :'Type',
    :'title' => :'Title',
    :'walls' => :'Walls',
    :'back_wall' => :'BackWall',
    :'chart_data_table' => :'ChartDataTable',
    :'height_percent' => :'HeightPercent',
    :'gap_width' => :'GapWidth',
    :'legend' => :'Legend',
    :'chart_object' => :'ChartObject',
    :'is_rectangular_cornered' => :'IsRectangularCornered',
    :'second_category_axis' => :'SecondCategoryAxis',
    :'second_value_axis' => :'SecondValueAxis',
    :'placement' => :'Placement',
    :'name' => :'Name',
    :'size_with_window' => :'SizeWithWindow',
    :'right_angle_axes' => :'RightAngleAxes',
    :'plot_visible_cells' => :'PlotVisibleCells',
    :'show_legend' => :'ShowLegend',
    :'pivot_source' => :'PivotSource',
    :'depth_percent' => :'DepthPercent',
    :'print_size' => :'PrintSize',
    :'gap_depth' => :'GapDepth',
    :'shapes' => :'Shapes',
    :'walls_and_gridlines2_d' => :'WallsAndGridlines2D',
    :'n_series' => :'NSeries',
    :'rotation_angle' => :'RotationAngle',
    :'plot_area' => :'PlotArea',
    :'category_axis' => :'CategoryAxis',
    :'perspective' => :'Perspective',
    :'hide_pivot_field_buttons' => :'HidePivotFieldButtons',
    :'page_setup' => :'PageSetup'
  }
end

.swagger_typesObject

Attribute type mapping.



209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# File 'lib/aspose_cells_cloud/models/chart.rb', line 209

def self.swagger_types
  {
    :'link' => :'Link',
    :'first_slice_angle' => :'Integer',
    :'floor' => :'LinkElement',
    :'plot_empty_cells_type' => :'String',
    :'auto_scaling' => :'BOOLEAN',
    :'style' => :'Integer',
    :'series_axis' => :'LinkElement',
    :'value_axis' => :'LinkElement',
    :'show_data_table' => :'BOOLEAN',
    :'is3_d' => :'BOOLEAN',
    :'chart_area' => :'LinkElement',
    :'elevation' => :'Integer',
    :'side_wall' => :'LinkElement',
    :'type' => :'String',
    :'title' => :'LinkElement',
    :'walls' => :'LinkElement',
    :'back_wall' => :'LinkElement',
    :'chart_data_table' => :'LinkElement',
    :'height_percent' => :'Integer',
    :'gap_width' => :'Integer',
    :'legend' => :'LinkElement',
    :'chart_object' => :'LinkElement',
    :'is_rectangular_cornered' => :'BOOLEAN',
    :'second_category_axis' => :'LinkElement',
    :'second_value_axis' => :'LinkElement',
    :'placement' => :'String',
    :'name' => :'String',
    :'size_with_window' => :'BOOLEAN',
    :'right_angle_axes' => :'BOOLEAN',
    :'plot_visible_cells' => :'BOOLEAN',
    :'show_legend' => :'BOOLEAN',
    :'pivot_source' => :'String',
    :'depth_percent' => :'Integer',
    :'print_size' => :'String',
    :'gap_depth' => :'Integer',
    :'shapes' => :'LinkElement',
    :'walls_and_gridlines2_d' => :'BOOLEAN',
    :'n_series' => :'LinkElement',
    :'rotation_angle' => :'Integer',
    :'plot_area' => :'LinkElement',
    :'category_axis' => :'LinkElement',
    :'perspective' => :'Integer',
    :'hide_pivot_field_buttons' => :'BOOLEAN',
    :'page_setup' => :'LinkElement'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
# File 'lib/aspose_cells_cloud/models/chart.rb', line 459

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      link == o.link &&
      first_slice_angle == o.first_slice_angle &&
      floor == o.floor &&
      plot_empty_cells_type == o.plot_empty_cells_type &&
      auto_scaling == o.auto_scaling &&
      style == o.style &&
      series_axis == o.series_axis &&
      value_axis == o.value_axis &&
      show_data_table == o.show_data_table &&
      is3_d == o.is3_d &&
      chart_area == o.chart_area &&
      elevation == o.elevation &&
      side_wall == o.side_wall &&
      type == o.type &&
      title == o.title &&
      walls == o.walls &&
      back_wall == o.back_wall &&
      chart_data_table == o.chart_data_table &&
      height_percent == o.height_percent &&
      gap_width == o.gap_width &&
      legend == o.legend &&
      chart_object == o.chart_object &&
      is_rectangular_cornered == o.is_rectangular_cornered &&
      second_category_axis == o.second_category_axis &&
      second_value_axis == o.second_value_axis &&
      placement == o.placement &&
      name == o.name &&
      size_with_window == o.size_with_window &&
      right_angle_axes == o.right_angle_axes &&
      plot_visible_cells == o.plot_visible_cells &&
      show_legend == o.show_legend &&
      pivot_source == o.pivot_source &&
      depth_percent == o.depth_percent &&
      print_size == o.print_size &&
      gap_depth == o.gap_depth &&
      shapes == o.shapes &&
      walls_and_gridlines2_d == o.walls_and_gridlines2_d &&
      n_series == o.n_series &&
      rotation_angle == o.rotation_angle &&
      plot_area == o.plot_area &&
      category_axis == o.category_axis &&
      perspective == o.perspective &&
      hide_pivot_field_buttons == o.hide_pivot_field_buttons &&
      page_setup == o.page_setup
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
# File 'lib/aspose_cells_cloud/models/chart.rb', line 544

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = AsposeCellsCloud.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



610
611
612
613
614
615
616
617
618
619
620
621
622
# File 'lib/aspose_cells_cloud/models/chart.rb', line 610

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
# File 'lib/aspose_cells_cloud/models/chart.rb', line 523

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


510
511
512
# File 'lib/aspose_cells_cloud/models/chart.rb', line 510

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



516
517
518
# File 'lib/aspose_cells_cloud/models/chart.rb', line 516

def hash
  [link, first_slice_angle, floor, plot_empty_cells_type, auto_scaling, style, series_axis, value_axis, show_data_table, is3_d, chart_area, elevation, side_wall, type, title, walls, back_wall, chart_data_table, height_percent, gap_width, legend, chart_object, is_rectangular_cornered, second_category_axis, second_value_axis, placement, name, size_with_window, right_angle_axes, plot_visible_cells, show_legend, pivot_source, depth_percent, print_size, gap_depth, shapes, walls_and_gridlines2_d, n_series, rotation_angle, plot_area, category_axis, perspective, hide_pivot_field_buttons, page_setup].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



446
447
448
449
# File 'lib/aspose_cells_cloud/models/chart.rb', line 446

def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



590
591
592
# File 'lib/aspose_cells_cloud/models/chart.rb', line 590

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



596
597
598
599
600
601
602
603
604
# File 'lib/aspose_cells_cloud/models/chart.rb', line 596

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



584
585
586
# File 'lib/aspose_cells_cloud/models/chart.rb', line 584

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



453
454
455
# File 'lib/aspose_cells_cloud/models/chart.rb', line 453

def valid?
  return true
end