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



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
257
258
259
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
# File 'lib/aspose_cells_cloud/models/chart.rb', line 225

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?(:'AutoScaling')
      self.auto_scaling = attributes[:'AutoScaling']
  end
  if attributes.has_key?(:'BackWall')
      self.back_wall = attributes[:'BackWall']
  end
  if attributes.has_key?(:'CategoryAxis')
      self.category_axis = attributes[:'CategoryAxis']
  end
  if attributes.has_key?(:'ChartArea')
      self.chart_area = attributes[:'ChartArea']
  end
  if attributes.has_key?(:'ChartDataTable')
      self.chart_data_table = attributes[:'ChartDataTable']
  end
  if attributes.has_key?(:'ChartObject')
      self.chart_object = attributes[:'ChartObject']
  end
  if attributes.has_key?(:'DepthPercent')
      self.depth_percent = attributes[:'DepthPercent']
  end
  if attributes.has_key?(:'Elevation')
      self.elevation = attributes[:'Elevation']
  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?(:'GapDepth')
      self.gap_depth = attributes[:'GapDepth']
  end
  if attributes.has_key?(:'GapWidth')
      self.gap_width = attributes[:'GapWidth']
  end
  if attributes.has_key?(:'HeightPercent')
      self.height_percent = attributes[:'HeightPercent']
  end
  if attributes.has_key?(:'HidePivotFieldButtons')
      self.hide_pivot_field_buttons = attributes[:'HidePivotFieldButtons']
  end
  if attributes.has_key?(:'Is3D')
      self.is3_d = attributes[:'Is3D']
  end
  if attributes.has_key?(:'IsRectangularCornered')
      self.is_rectangular_cornered = attributes[:'IsRectangularCornered']
  end
  if attributes.has_key?(:'Legend')
      self.legend = attributes[:'Legend']
  end
  if attributes.has_key?(:'Name')
      self.name = attributes[:'Name']
  end
  if attributes.has_key?(:'NSeries')
      self.n_series = attributes[:'NSeries']
  end
  if attributes.has_key?(:'PageSetup')
      self.page_setup = attributes[:'PageSetup']
  end
  if attributes.has_key?(:'Perspective')
      self.perspective = attributes[:'Perspective']
  end
  if attributes.has_key?(:'PivotSource')
      self.pivot_source = attributes[:'PivotSource']
  end
  if attributes.has_key?(:'Placement')
      self.placement = attributes[:'Placement']
  end
  if attributes.has_key?(:'PlotArea')
      self.plot_area = attributes[:'PlotArea']
  end
  if attributes.has_key?(:'PlotEmptyCellsType')
      self.plot_empty_cells_type = attributes[:'PlotEmptyCellsType']
  end
  if attributes.has_key?(:'PlotVisibleCells')
      self.plot_visible_cells = attributes[:'PlotVisibleCells']
  end
  if attributes.has_key?(:'PrintSize')
      self.print_size = attributes[:'PrintSize']
  end
  if attributes.has_key?(:'RightAngleAxes')
      self.right_angle_axes = attributes[:'RightAngleAxes']
  end
  if attributes.has_key?(:'RotationAngle')
      self.rotation_angle = attributes[:'RotationAngle']
  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?(:'SeriesAxis')
      self.series_axis = attributes[:'SeriesAxis']
  end
  if attributes.has_key?(:'Shapes')
      self.shapes = attributes[:'Shapes']
  end
  if attributes.has_key?(:'ShowDataTable')
      self.show_data_table = attributes[:'ShowDataTable']
  end
  if attributes.has_key?(:'ShowLegend')
      self.show_legend = attributes[:'ShowLegend']
  end
  if attributes.has_key?(:'SideWall')
      self.side_wall = attributes[:'SideWall']
  end
  if attributes.has_key?(:'SizeWithWindow')
      self.size_with_window = attributes[:'SizeWithWindow']
  end
  if attributes.has_key?(:'Style')
      self.style = attributes[:'Style']
  end
  if attributes.has_key?(:'Title')
      self.title = attributes[:'Title']
  end
  if attributes.has_key?(:'Type')
      self.type = attributes[:'Type']
  end
  if attributes.has_key?(:'ValueAxis')
      self.value_axis = attributes[:'ValueAxis']
  end
  if attributes.has_key?(:'Walls')
      self.walls = attributes[:'Walls']
  end
  if attributes.has_key?(:'WallsAndGridlines2D')
      self.walls_and_gridlines2_d = attributes[:'WallsAndGridlines2D']
  end
  if attributes.has_key?(:'link')
      self.link = attributes[:'link']
  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.



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

def auto_scaling
  @auto_scaling
end

#back_wallObject

Returns a object that represents the back wall of a 3-D chart.



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

def back_wall
  @back_wall
end

#category_axisObject

Gets the chart’s X axis.



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

def category_axis
  @category_axis
end

#chart_areaObject

Gets the chart area in the worksheet.



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

def chart_area
  @chart_area
end

#chart_data_tableObject

Represents the chart data table.



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

def chart_data_table
  @chart_data_table
end

#chart_objectObject

Represents the chartShape;



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

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).



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

def depth_percent
  @depth_percent
end

#elevationObject

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



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

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.



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

def first_slice_angle
  @first_slice_angle
end

#floorObject

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



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

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.



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

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.



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

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).



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

def height_percent
  @height_percent
end

#hide_pivot_field_buttonsObject

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



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

def hide_pivot_field_buttons
  @hide_pivot_field_buttons
end

#is3_dObject

Indicates whether the chart is a 3d chart.



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

def is3_d
  @is3_d
end

#is_rectangular_corneredObject

Gets or sets a value indicating whether the chart area is rectangular cornered. Default is true.



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

def is_rectangular_cornered
  @is_rectangular_cornered
end

#legendObject

Gets the chart legend.



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

def legend
  @legend
end

Returns the value of attribute link.



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

def link
  @link
end

#n_seriesObject

Gets a collection representing the data series in the chart.



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

def n_series
  @n_series
end

#nameObject

Gets and sets the name of the chart.



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

def name
  @name
end

#page_setupObject

Represents the page setup description in this chart.



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

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.



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

def perspective
  @perspective
end

#pivot_sourceObject

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



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

def pivot_source
  @pivot_source
end

#placementObject

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



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

def placement
  @placement
end

#plot_areaObject

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



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

def plot_area
  @plot_area
end

#plot_empty_cells_typeObject

Gets and sets how to plot the empty cells.



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

def plot_empty_cells_type
  @plot_empty_cells_type
end

#plot_visible_cellsObject

Indicates whether only plot visible cells.



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

def plot_visible_cells
  @plot_visible_cells
end

Gets and sets the printed chart size.



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

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).



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

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).



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

def rotation_angle
  @rotation_angle
end

#second_category_axisObject

Gets the chart’s second X axis.



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

def second_category_axis
  @second_category_axis
end

#second_value_axisObject

Gets the chart’s second Y axis.



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

def second_value_axis
  @second_value_axis
end

#series_axisObject

Gets the chart’s series axis.



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

def series_axis
  @series_axis
end

#shapesObject

Returns all drawing shapes in this chart.



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

def shapes
  @shapes
end

#show_data_tableObject

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



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

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.



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

def show_legend
  @show_legend
end

#side_wallObject

Returns a object that represents the side wall of a 3-D chart.



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

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.



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

def style
  @style
end

#titleObject

Gets the chart’s title.



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

def title
  @title
end

#typeObject

Gets or sets a chart’s type.



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

def type
  @type
end

#value_axisObject

Gets the chart’s Y axis.



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

def value_axis
  @value_axis
end

#wallsObject

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



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

def walls
  @walls
end

#walls_and_gridlines2_dObject

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



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

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.



124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/aspose_cells_cloud/models/chart.rb', line 124

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

.swagger_typesObject

Attribute type mapping.



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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/aspose_cells_cloud/models/chart.rb', line 174

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

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
# File 'lib/aspose_cells_cloud/models/chart.rb', line 558

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



644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
# File 'lib/aspose_cells_cloud/models/chart.rb', line 644

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



710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/aspose_cells_cloud/models/chart.rb', line 710

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



623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
# File 'lib/aspose_cells_cloud/models/chart.rb', line 623

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


610
611
612
# File 'lib/aspose_cells_cloud/models/chart.rb', line 610

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



616
617
618
# File 'lib/aspose_cells_cloud/models/chart.rb', line 616

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properies with the reasons



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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
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
# File 'lib/aspose_cells_cloud/models/chart.rb', line 368

def list_invalid_properties
  invalid_properties = Array.new
  if @auto_scaling.nil?
      invalid_properties.push("invalid value for 'auto_scaling', auto_scaling cannot be nil.")
  end
  if @back_wall.nil?
      invalid_properties.push("invalid value for 'back_wall', back_wall cannot be nil.")
  end
  if @category_axis.nil?
      invalid_properties.push("invalid value for 'category_axis', category_axis cannot be nil.")
  end
  if @chart_area.nil?
      invalid_properties.push("invalid value for 'chart_area', chart_area cannot be nil.")
  end
  if @chart_data_table.nil?
      invalid_properties.push("invalid value for 'chart_data_table', chart_data_table cannot be nil.")
  end
  if @chart_object.nil?
      invalid_properties.push("invalid value for 'chart_object', chart_object cannot be nil.")
  end
  if @depth_percent.nil?
      invalid_properties.push("invalid value for 'depth_percent', depth_percent cannot be nil.")
  end
  if @elevation.nil?
      invalid_properties.push("invalid value for 'elevation', elevation cannot be nil.")
  end
  if @first_slice_angle.nil?
      invalid_properties.push("invalid value for 'first_slice_angle', first_slice_angle cannot be nil.")
  end
  if @floor.nil?
      invalid_properties.push("invalid value for 'floor', floor cannot be nil.")
  end
  if @gap_depth.nil?
      invalid_properties.push("invalid value for 'gap_depth', gap_depth cannot be nil.")
  end
  if @gap_width.nil?
      invalid_properties.push("invalid value for 'gap_width', gap_width cannot be nil.")
  end
  if @height_percent.nil?
      invalid_properties.push("invalid value for 'height_percent', height_percent cannot be nil.")
  end
  if @hide_pivot_field_buttons.nil?
      invalid_properties.push("invalid value for 'hide_pivot_field_buttons', hide_pivot_field_buttons cannot be nil.")
  end
  if @is3_d.nil?
      invalid_properties.push("invalid value for 'is3_d', is3_d cannot be nil.")
  end
  if @is_rectangular_cornered.nil?
      invalid_properties.push("invalid value for 'is_rectangular_cornered', is_rectangular_cornered cannot be nil.")
  end
  if @legend.nil?
      invalid_properties.push("invalid value for 'legend', legend cannot be nil.")
  end
  if @name.nil?
      invalid_properties.push("invalid value for 'name', name cannot be nil.")
  end
  if @n_series.nil?
      invalid_properties.push("invalid value for 'n_series', n_series cannot be nil.")
  end
  if @page_setup.nil?
      invalid_properties.push("invalid value for 'page_setup', page_setup cannot be nil.")
  end
  if @perspective.nil?
      invalid_properties.push("invalid value for 'perspective', perspective cannot be nil.")
  end
  if @pivot_source.nil?
      invalid_properties.push("invalid value for 'pivot_source', pivot_source cannot be nil.")
  end
  if @placement.nil?
      invalid_properties.push("invalid value for 'placement', placement cannot be nil.")
  end
  if @plot_area.nil?
      invalid_properties.push("invalid value for 'plot_area', plot_area cannot be nil.")
  end
  if @plot_empty_cells_type.nil?
      invalid_properties.push("invalid value for 'plot_empty_cells_type', plot_empty_cells_type cannot be nil.")
  end
  if @plot_visible_cells.nil?
      invalid_properties.push("invalid value for 'plot_visible_cells', plot_visible_cells cannot be nil.")
  end
  if @print_size.nil?
      invalid_properties.push("invalid value for 'print_size', print_size cannot be nil.")
  end
  if @right_angle_axes.nil?
      invalid_properties.push("invalid value for 'right_angle_axes', right_angle_axes cannot be nil.")
  end
  if @rotation_angle.nil?
      invalid_properties.push("invalid value for 'rotation_angle', rotation_angle cannot be nil.")
  end
  if @second_category_axis.nil?
      invalid_properties.push("invalid value for 'second_category_axis', second_category_axis cannot be nil.")
  end
  if @second_value_axis.nil?
      invalid_properties.push("invalid value for 'second_value_axis', second_value_axis cannot be nil.")
  end
  if @series_axis.nil?
      invalid_properties.push("invalid value for 'series_axis', series_axis cannot be nil.")
  end
  if @shapes.nil?
      invalid_properties.push("invalid value for 'shapes', shapes cannot be nil.")
  end
  if @show_data_table.nil?
      invalid_properties.push("invalid value for 'show_data_table', show_data_table cannot be nil.")
  end
  if @show_legend.nil?
      invalid_properties.push("invalid value for 'show_legend', show_legend cannot be nil.")
  end
  if @side_wall.nil?
      invalid_properties.push("invalid value for 'side_wall', side_wall cannot be nil.")
  end
  if @size_with_window.nil?
      invalid_properties.push("invalid value for 'size_with_window', size_with_window cannot be nil.")
  end
  if @style.nil?
      invalid_properties.push("invalid value for 'style', style cannot be nil.")
  end
  if @title.nil?
      invalid_properties.push("invalid value for 'title', title cannot be nil.")
  end
  if @type.nil?
      invalid_properties.push("invalid value for 'type', type cannot be nil.")
  end
  if @value_axis.nil?
      invalid_properties.push("invalid value for 'value_axis', value_axis cannot be nil.")
  end
  if @walls.nil?
      invalid_properties.push("invalid value for 'walls', walls cannot be nil.")
  end
  if @walls_and_gridlines2_d.nil?
      invalid_properties.push("invalid value for 'walls_and_gridlines2_d', walls_and_gridlines2_d cannot be nil.")
  end
  if @link.nil?
      invalid_properties.push("invalid value for 'link', link cannot be nil.")
  end

  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



690
691
692
# File 'lib/aspose_cells_cloud/models/chart.rb', line 690

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



696
697
698
699
700
701
702
703
704
# File 'lib/aspose_cells_cloud/models/chart.rb', line 696

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



684
685
686
# File 'lib/aspose_cells_cloud/models/chart.rb', line 684

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



508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
# File 'lib/aspose_cells_cloud/models/chart.rb', line 508

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