Class: AsposeCellsCloud::Series

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Series

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
# File 'lib/aspose_cells_cloud/models/series.rb', line 237

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?(:'Area')
      self.area = attributes[:'Area']
  end
  if attributes.has_key?(:'Bar3DShapeType')
      self.bar3_d_shape_type = attributes[:'Bar3DShapeType']
  end
  if attributes.has_key?(:'Border')
      self.border = attributes[:'Border']
  end
  if attributes.has_key?(:'BubbleScale')
      self.bubble_scale = attributes[:'BubbleScale']
  end
  if attributes.has_key?(:'BubbleSizes')
      self.bubble_sizes = attributes[:'BubbleSizes']
  end
  if attributes.has_key?(:'CountOfDataValues')
      self.count_of_data_values = attributes[:'CountOfDataValues']
  end
  if attributes.has_key?(:'DataLabels')
      self.data_labels = attributes[:'DataLabels']
  end
  if attributes.has_key?(:'DisplayName')
      self.display_name = attributes[:'DisplayName']
  end
  if attributes.has_key?(:'DoughnutHoleSize')
      self.doughnut_hole_size = attributes[:'DoughnutHoleSize']
  end
  if attributes.has_key?(:'DownBars')
      self.down_bars = attributes[:'DownBars']
  end
  if attributes.has_key?(:'DropLines')
      self.drop_lines = attributes[:'DropLines']
  end
  if attributes.has_key?(:'Explosion')
      self.explosion = attributes[:'Explosion']
  end
  if attributes.has_key?(:'FirstSliceAngle')
      self.first_slice_angle = attributes[:'FirstSliceAngle']
  end
  if attributes.has_key?(:'GapWidth')
      self.gap_width = attributes[:'GapWidth']
  end
  if attributes.has_key?(:'Has3DEffect')
      self.has3_d_effect = attributes[:'Has3DEffect']
  end
  if attributes.has_key?(:'HasDropLines')
      self.has_drop_lines = attributes[:'HasDropLines']
  end
  if attributes.has_key?(:'HasHiLoLines')
      self.has_hi_lo_lines = attributes[:'HasHiLoLines']
  end
  if attributes.has_key?(:'HasLeaderLines')
      self.has_leader_lines = attributes[:'HasLeaderLines']
  end
  if attributes.has_key?(:'HasRadarAxisLabels')
      self.has_radar_axis_labels = attributes[:'HasRadarAxisLabels']
  end
  if attributes.has_key?(:'HasSeriesLines')
      self.has_series_lines = attributes[:'HasSeriesLines']
  end
  if attributes.has_key?(:'HasUpDownBars')
      self.has_up_down_bars = attributes[:'HasUpDownBars']
  end
  if attributes.has_key?(:'HiLoLines')
      self.hi_lo_lines = attributes[:'HiLoLines']
  end
  if attributes.has_key?(:'IsAutoSplit')
      self.is_auto_split = attributes[:'IsAutoSplit']
  end
  if attributes.has_key?(:'IsColorVaried')
      self.is_color_varied = attributes[:'IsColorVaried']
  end
  if attributes.has_key?(:'LeaderLines')
      self.leader_lines = attributes[:'LeaderLines']
  end
  if attributes.has_key?(:'LegendEntry')
      self.legend_entry = attributes[:'LegendEntry']
  end
  if attributes.has_key?(:'Marker')
      self.marker = attributes[:'Marker']
  end
  if attributes.has_key?(:'Name')
      self.name = attributes[:'Name']
  end
  if attributes.has_key?(:'Overlap')
      self.overlap = attributes[:'Overlap']
  end
  if attributes.has_key?(:'PlotOnSecondAxis')
      self.plot_on_second_axis = attributes[:'PlotOnSecondAxis']
  end
  if attributes.has_key?(:'Points')
      self.points = attributes[:'Points']
  end
  if attributes.has_key?(:'SecondPlotSize')
      self.second_plot_size = attributes[:'SecondPlotSize']
  end
  if attributes.has_key?(:'SeriesLines')
      self.series_lines = attributes[:'SeriesLines']
  end
  if attributes.has_key?(:'Shadow')
      self.shadow = attributes[:'Shadow']
  end
  if attributes.has_key?(:'ShowNegativeBubbles')
      self.show_negative_bubbles = attributes[:'ShowNegativeBubbles']
  end
  if attributes.has_key?(:'SizeRepresents')
      self.size_represents = attributes[:'SizeRepresents']
  end
  if attributes.has_key?(:'Smooth')
      self.smooth = attributes[:'Smooth']
  end
  if attributes.has_key?(:'SplitType')
      self.split_type = attributes[:'SplitType']
  end
  if attributes.has_key?(:'SplitValue')
      self.split_value = attributes[:'SplitValue']
  end
  if attributes.has_key?(:'TrendLines')
      self.trend_lines = attributes[:'TrendLines']
  end
  if attributes.has_key?(:'Type')
      self.type = attributes[:'Type']
  end
  if attributes.has_key?(:'UpBars')
      self.up_bars = attributes[:'UpBars']
  end
  if attributes.has_key?(:'Values')
      self.values = attributes[:'Values']
  end
  if attributes.has_key?(:'XErrorBar')
      self.x_error_bar = attributes[:'XErrorBar']
  end
  if attributes.has_key?(:'XValues')
      self.x_values = attributes[:'XValues']
  end
  if attributes.has_key?(:'YErrorBar')
      self.y_error_bar = attributes[:'YErrorBar']
  end
  if attributes.has_key?(:'link')
      self.link = attributes[:'link']
  end

end

Instance Attribute Details

#areaObject

Represents the background area of Series object.



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

def area
  @area
end

#bar3_d_shape_typeObject

Gets or sets the 3D shape type used with the 3-D bar or column chart.



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

def bar3_d_shape_type
  @bar3_d_shape_type
end

#borderObject

Represents border of Series object.



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

def border
  @border
end

#bubble_scaleObject

Gets or sets the scale factor for bubbles in the specified chart group. It can be an integer value from 0 (zero) to 300, corresponding to a percentage of the default size. Applies only to bubble charts.



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

def bubble_scale
  @bubble_scale
end

#bubble_sizesObject

Gets or sets the bubble sizes values of the chart series.



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

def bubble_sizes
  @bubble_sizes
end

#count_of_data_valuesObject

Gets the number of the data values.



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

def count_of_data_values
  @count_of_data_values
end

#data_labelsObject

Represents the DataLabels object for the specified ASeries.



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

def data_labels
  @data_labels
end

#display_nameObject

Gets the series’s name that displays on the chart graph.



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

def display_name
  @display_name
end

#doughnut_hole_sizeObject

Returns or sets the size of the hole in a doughnut chart group. The hole size is expressed as a percentage of the chart size, between 10 and 90 percent.



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

def doughnut_hole_size
  @doughnut_hole_size
end

#down_barsObject

Returns a object that represents the down bars on a line chart. Applies only to line charts.



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

def down_bars
  @down_bars
end

#drop_linesObject

Returns a object that represents the drop lines for a series on the line chart or area chart. Applies only to line chart or area charts.



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

def drop_lines
  @drop_lines
end

#explosionObject

The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.



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

def explosion
  @explosion
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.



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

def first_slice_angle
  @first_slice_angle
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.



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

def gap_width
  @gap_width
end

#has3_d_effectObject

True if the series has a three-dimensional appearance. Applies only to bubble charts.



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

def has3_d_effect
  @has3_d_effect
end

#has_drop_linesObject

True if the chart has drop lines. Applies only to line chart or area charts.



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

def has_drop_lines
  @has_drop_lines
end

#has_hi_lo_linesObject

True if the line chart has high-low lines. Applies only to line charts.



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

def has_hi_lo_lines
  @has_hi_lo_lines
end

#has_leader_linesObject

True if the series has leader lines.



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

def has_leader_lines
  @has_leader_lines
end

#has_radar_axis_labelsObject

True if a radar chart has category axis labels. Applies only to radar charts.



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

def has_radar_axis_labels
  @has_radar_axis_labels
end

#has_series_linesObject

True if a stacked column chart or bar chart has series lines or if a Pie of Pie chart or Bar of Pie chart has connector lines between the two sections. Applies only to stacked column charts, bar charts, Pie of Pie charts, or Bar of Pie charts.



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

def has_series_lines
  @has_series_lines
end

#has_up_down_barsObject

True if a line chart has up and down bars. Applies only to line charts.



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

def has_up_down_bars
  @has_up_down_bars
end

#hi_lo_linesObject

Returns a HiLoLines object that represents the high-low lines for a series on a line chart. Applies only to line charts.



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

def hi_lo_lines
  @hi_lo_lines
end

#is_auto_splitObject

Indicates whether the threshold value is automatic.



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

def is_auto_split
  @is_auto_split
end

#is_color_variedObject

Represents if the color of points is varied. The chart must contain only one series.



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

def is_color_varied
  @is_color_varied
end

#leader_linesObject

Represents leader lines on a chart. Leader lines connect data labels to data points. This object isn’t a collection; there’s no object that represents a single leader line.



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

def leader_lines
  @leader_lines
end

#legend_entryObject

Gets the legend entry according to this series.



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

def legend_entry
  @legend_entry
end

Returns the value of attribute link.



127
128
129
# File 'lib/aspose_cells_cloud/models/series.rb', line 127

def link
  @link
end

#markerObject

Gets the marker.



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

def marker
  @marker
end

#nameObject

Gets or sets the name of the data series.



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

def name
  @name
end

#overlapObject

Specifies how bars and columns are positioned. Can be a value between – 100 and 100. Applies only to 2-D bar and 2-D column charts.



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

def overlap
  @overlap
end

#plot_on_second_axisObject

Indicates if this series is plotted on second value axis.



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

def plot_on_second_axis
  @plot_on_second_axis
end

#pointsObject

Gets the collection of points in a series in a chart.



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

def points
  @points
end

#second_plot_sizeObject

Returns or sets the size of the secondary section of either a pie of pie chart or a bar of pie chart, as a percentage of the size of the primary pie. Can be a value from 5 to 200.



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

def second_plot_size
  @second_plot_size
end

#series_linesObject

Returns a SeriesLines object that represents the series lines for a stacked bar chart or a stacked column chart. Applies only to stacked bar and stacked column charts.



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

def series_lines
  @series_lines
end

#shadowObject

True if the series has a shadow.



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

def shadow
  @shadow
end

#show_negative_bubblesObject

True if negative bubbles are shown for the chart group. Valid only for bubble charts.



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

def show_negative_bubbles
  @show_negative_bubbles
end

#size_representsObject

Gets or sets what the bubble size represents on a bubble chart.



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

def size_represents
  @size_represents
end

#smoothObject

Represents curve smoothing. True if curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter connected by lines charts.



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

def smooth
  @smooth
end

#split_typeObject

Returns or sets a value that how to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart.



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

def split_type
  @split_type
end

#split_valueObject

Returns or sets a value that shall be used to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart.



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

def split_value
  @split_value
end

#trend_linesObject

Returns an object that represents a collection of all the trendlines for the series.



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

def trend_lines
  @trend_lines
end

#typeObject

Gets or sets a data series’ type.



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

def type
  @type
end

#up_barsObject

Returns an DropBars object that represents the up bars on a line chart. Applies only to line charts.



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

def up_bars
  @up_bars
end

#valuesObject

Represents the data of the chart series.



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

def values
  @values
end

#x_error_barObject

Represents X direction error bar of the series.



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

def x_error_bar
  @x_error_bar
end

#x_valuesObject

Represents the x values of the chart series.



123
124
125
# File 'lib/aspose_cells_cloud/models/series.rb', line 123

def x_values
  @x_values
end

#y_error_barObject

Represents Y direction error bar of the series.



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

def y_error_bar
  @y_error_bar
end

Class Method Details

.attribute_mapObject

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



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
172
173
174
175
176
177
178
179
180
# File 'lib/aspose_cells_cloud/models/series.rb', line 130

def self.attribute_map
  {
    :'area' => :'Area',
    :'bar3_d_shape_type' => :'Bar3DShapeType',
    :'border' => :'Border',
    :'bubble_scale' => :'BubbleScale',
    :'bubble_sizes' => :'BubbleSizes',
    :'count_of_data_values' => :'CountOfDataValues',
    :'data_labels' => :'DataLabels',
    :'display_name' => :'DisplayName',
    :'doughnut_hole_size' => :'DoughnutHoleSize',
    :'down_bars' => :'DownBars',
    :'drop_lines' => :'DropLines',
    :'explosion' => :'Explosion',
    :'first_slice_angle' => :'FirstSliceAngle',
    :'gap_width' => :'GapWidth',
    :'has3_d_effect' => :'Has3DEffect',
    :'has_drop_lines' => :'HasDropLines',
    :'has_hi_lo_lines' => :'HasHiLoLines',
    :'has_leader_lines' => :'HasLeaderLines',
    :'has_radar_axis_labels' => :'HasRadarAxisLabels',
    :'has_series_lines' => :'HasSeriesLines',
    :'has_up_down_bars' => :'HasUpDownBars',
    :'hi_lo_lines' => :'HiLoLines',
    :'is_auto_split' => :'IsAutoSplit',
    :'is_color_varied' => :'IsColorVaried',
    :'leader_lines' => :'LeaderLines',
    :'legend_entry' => :'LegendEntry',
    :'marker' => :'Marker',
    :'name' => :'Name',
    :'overlap' => :'Overlap',
    :'plot_on_second_axis' => :'PlotOnSecondAxis',
    :'points' => :'Points',
    :'second_plot_size' => :'SecondPlotSize',
    :'series_lines' => :'SeriesLines',
    :'shadow' => :'Shadow',
    :'show_negative_bubbles' => :'ShowNegativeBubbles',
    :'size_represents' => :'SizeRepresents',
    :'smooth' => :'Smooth',
    :'split_type' => :'SplitType',
    :'split_value' => :'SplitValue',
    :'trend_lines' => :'TrendLines',
    :'type' => :'Type',
    :'up_bars' => :'UpBars',
    :'values' => :'Values',
    :'x_error_bar' => :'XErrorBar',
    :'x_values' => :'XValues',
    :'y_error_bar' => :'YErrorBar',
    :'link' => :'link'
  }
end

.swagger_typesObject

Attribute type mapping.



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
222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/aspose_cells_cloud/models/series.rb', line 183

def self.swagger_types
  {
    :'area' => :'Area',
    :'bar3_d_shape_type' => :'String',
    :'border' => :'Line',
    :'bubble_scale' => :'Integer',
    :'bubble_sizes' => :'String',
    :'count_of_data_values' => :'Integer',
    :'data_labels' => :'DataLabels',
    :'display_name' => :'String',
    :'doughnut_hole_size' => :'Integer',
    :'down_bars' => :'DropBars',
    :'drop_lines' => :'Line',
    :'explosion' => :'Integer',
    :'first_slice_angle' => :'Integer',
    :'gap_width' => :'Integer',
    :'has3_d_effect' => :'BOOLEAN',
    :'has_drop_lines' => :'BOOLEAN',
    :'has_hi_lo_lines' => :'BOOLEAN',
    :'has_leader_lines' => :'BOOLEAN',
    :'has_radar_axis_labels' => :'BOOLEAN',
    :'has_series_lines' => :'BOOLEAN',
    :'has_up_down_bars' => :'BOOLEAN',
    :'hi_lo_lines' => :'Line',
    :'is_auto_split' => :'BOOLEAN',
    :'is_color_varied' => :'BOOLEAN',
    :'leader_lines' => :'Line',
    :'legend_entry' => :'LegendEntry',
    :'marker' => :'Marker',
    :'name' => :'String',
    :'overlap' => :'Integer',
    :'plot_on_second_axis' => :'BOOLEAN',
    :'points' => :'LinkElement',
    :'second_plot_size' => :'Integer',
    :'series_lines' => :'Line',
    :'shadow' => :'BOOLEAN',
    :'show_negative_bubbles' => :'BOOLEAN',
    :'size_represents' => :'String',
    :'smooth' => :'BOOLEAN',
    :'split_type' => :'String',
    :'split_value' => :'Float',
    :'trend_lines' => :'Trendlines',
    :'type' => :'String',
    :'up_bars' => :'DropBars',
    :'values' => :'String',
    :'x_error_bar' => :'ErrorBar',
    :'x_values' => :'String',
    :'y_error_bar' => :'ErrorBar',
    :'link' => :'Link'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# File 'lib/aspose_cells_cloud/models/series.rb', line 591

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      area == o.area &&
      bar3_d_shape_type == o.bar3_d_shape_type &&
      border == o.border &&
      bubble_scale == o.bubble_scale &&
      bubble_sizes == o.bubble_sizes &&
      count_of_data_values == o.count_of_data_values &&
      data_labels == o.data_labels &&
      display_name == o.display_name &&
      doughnut_hole_size == o.doughnut_hole_size &&
      down_bars == o.down_bars &&
      drop_lines == o.drop_lines &&
      explosion == o.explosion &&
      first_slice_angle == o.first_slice_angle &&
      gap_width == o.gap_width &&
      has3_d_effect == o.has3_d_effect &&
      has_drop_lines == o.has_drop_lines &&
      has_hi_lo_lines == o.has_hi_lo_lines &&
      has_leader_lines == o.has_leader_lines &&
      has_radar_axis_labels == o.has_radar_axis_labels &&
      has_series_lines == o.has_series_lines &&
      has_up_down_bars == o.has_up_down_bars &&
      hi_lo_lines == o.hi_lo_lines &&
      is_auto_split == o.is_auto_split &&
      is_color_varied == o.is_color_varied &&
      leader_lines == o.leader_lines &&
      legend_entry == o.legend_entry &&
      marker == o.marker &&
      name == o.name &&
      overlap == o.overlap &&
      plot_on_second_axis == o.plot_on_second_axis &&
      points == o.points &&
      second_plot_size == o.second_plot_size &&
      series_lines == o.series_lines &&
      shadow == o.shadow &&
      show_negative_bubbles == o.show_negative_bubbles &&
      size_represents == o.size_represents &&
      smooth == o.smooth &&
      split_type == o.split_type &&
      split_value == o.split_value &&
      trend_lines == o.trend_lines &&
      type == o.type &&
      up_bars == o.up_bars &&
      values == o.values &&
      x_error_bar == o.x_error_bar &&
      x_values == o.x_values &&
      y_error_bar == o.y_error_bar &&
      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



680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
# File 'lib/aspose_cells_cloud/models/series.rb', line 680

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



746
747
748
749
750
751
752
753
754
755
756
757
758
# File 'lib/aspose_cells_cloud/models/series.rb', line 746

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



659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# File 'lib/aspose_cells_cloud/models/series.rb', line 659

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


646
647
648
# File 'lib/aspose_cells_cloud/models/series.rb', line 646

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



652
653
654
# File 'lib/aspose_cells_cloud/models/series.rb', line 652

def hash
  [ area , bar3_d_shape_type , border , bubble_scale , bubble_sizes , count_of_data_values , data_labels , display_name , doughnut_hole_size , down_bars , drop_lines , explosion , first_slice_angle , gap_width , has3_d_effect , has_drop_lines , has_hi_lo_lines , has_leader_lines , has_radar_axis_labels , has_series_lines , has_up_down_bars , hi_lo_lines , is_auto_split , is_color_varied , leader_lines , legend_entry , marker , name , overlap , plot_on_second_axis , points , second_plot_size , series_lines , shadow , show_negative_bubbles , size_represents , smooth , split_type , split_value , trend_lines , type , up_bars , values , x_error_bar , x_values , y_error_bar , 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



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
505
506
507
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
# File 'lib/aspose_cells_cloud/models/series.rb', line 389

def list_invalid_properties
  invalid_properties = Array.new
  if @area.nil?
      invalid_properties.push("invalid value for 'area', area cannot be nil.")
  end
  if @bar3_d_shape_type.nil?
      invalid_properties.push("invalid value for 'bar3_d_shape_type', bar3_d_shape_type cannot be nil.")
  end
  if @border.nil?
      invalid_properties.push("invalid value for 'border', border cannot be nil.")
  end
  if @bubble_scale.nil?
      invalid_properties.push("invalid value for 'bubble_scale', bubble_scale cannot be nil.")
  end
  if @bubble_sizes.nil?
      invalid_properties.push("invalid value for 'bubble_sizes', bubble_sizes cannot be nil.")
  end
  if @count_of_data_values.nil?
      invalid_properties.push("invalid value for 'count_of_data_values', count_of_data_values cannot be nil.")
  end
  if @data_labels.nil?
      invalid_properties.push("invalid value for 'data_labels', data_labels cannot be nil.")
  end
  if @display_name.nil?
      invalid_properties.push("invalid value for 'display_name', display_name cannot be nil.")
  end
  if @doughnut_hole_size.nil?
      invalid_properties.push("invalid value for 'doughnut_hole_size', doughnut_hole_size cannot be nil.")
  end
  if @down_bars.nil?
      invalid_properties.push("invalid value for 'down_bars', down_bars cannot be nil.")
  end
  if @drop_lines.nil?
      invalid_properties.push("invalid value for 'drop_lines', drop_lines cannot be nil.")
  end
  if @explosion.nil?
      invalid_properties.push("invalid value for 'explosion', explosion 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 @gap_width.nil?
      invalid_properties.push("invalid value for 'gap_width', gap_width cannot be nil.")
  end
  if @has3_d_effect.nil?
      invalid_properties.push("invalid value for 'has3_d_effect', has3_d_effect cannot be nil.")
  end
  if @has_drop_lines.nil?
      invalid_properties.push("invalid value for 'has_drop_lines', has_drop_lines cannot be nil.")
  end
  if @has_hi_lo_lines.nil?
      invalid_properties.push("invalid value for 'has_hi_lo_lines', has_hi_lo_lines cannot be nil.")
  end
  if @has_leader_lines.nil?
      invalid_properties.push("invalid value for 'has_leader_lines', has_leader_lines cannot be nil.")
  end
  if @has_radar_axis_labels.nil?
      invalid_properties.push("invalid value for 'has_radar_axis_labels', has_radar_axis_labels cannot be nil.")
  end
  if @has_series_lines.nil?
      invalid_properties.push("invalid value for 'has_series_lines', has_series_lines cannot be nil.")
  end
  if @has_up_down_bars.nil?
      invalid_properties.push("invalid value for 'has_up_down_bars', has_up_down_bars cannot be nil.")
  end
  if @hi_lo_lines.nil?
      invalid_properties.push("invalid value for 'hi_lo_lines', hi_lo_lines cannot be nil.")
  end
  if @is_auto_split.nil?
      invalid_properties.push("invalid value for 'is_auto_split', is_auto_split cannot be nil.")
  end
  if @is_color_varied.nil?
      invalid_properties.push("invalid value for 'is_color_varied', is_color_varied cannot be nil.")
  end
  if @leader_lines.nil?
      invalid_properties.push("invalid value for 'leader_lines', leader_lines cannot be nil.")
  end
  if @legend_entry.nil?
      invalid_properties.push("invalid value for 'legend_entry', legend_entry cannot be nil.")
  end
  if @marker.nil?
      invalid_properties.push("invalid value for 'marker', marker cannot be nil.")
  end
  if @name.nil?
      invalid_properties.push("invalid value for 'name', name cannot be nil.")
  end
  if @overlap.nil?
      invalid_properties.push("invalid value for 'overlap', overlap cannot be nil.")
  end
  if @plot_on_second_axis.nil?
      invalid_properties.push("invalid value for 'plot_on_second_axis', plot_on_second_axis cannot be nil.")
  end
  if @points.nil?
      invalid_properties.push("invalid value for 'points', points cannot be nil.")
  end
  if @second_plot_size.nil?
      invalid_properties.push("invalid value for 'second_plot_size', second_plot_size cannot be nil.")
  end
  if @series_lines.nil?
      invalid_properties.push("invalid value for 'series_lines', series_lines cannot be nil.")
  end
  if @shadow.nil?
      invalid_properties.push("invalid value for 'shadow', shadow cannot be nil.")
  end
  if @show_negative_bubbles.nil?
      invalid_properties.push("invalid value for 'show_negative_bubbles', show_negative_bubbles cannot be nil.")
  end
  if @size_represents.nil?
      invalid_properties.push("invalid value for 'size_represents', size_represents cannot be nil.")
  end
  if @smooth.nil?
      invalid_properties.push("invalid value for 'smooth', smooth cannot be nil.")
  end
  if @split_type.nil?
      invalid_properties.push("invalid value for 'split_type', split_type cannot be nil.")
  end
  if @split_value.nil?
      invalid_properties.push("invalid value for 'split_value', split_value cannot be nil.")
  end
  if @trend_lines.nil?
      invalid_properties.push("invalid value for 'trend_lines', trend_lines cannot be nil.")
  end
  if @type.nil?
      invalid_properties.push("invalid value for 'type', type cannot be nil.")
  end
  if @up_bars.nil?
      invalid_properties.push("invalid value for 'up_bars', up_bars cannot be nil.")
  end
  if @values.nil?
      invalid_properties.push("invalid value for 'values', values cannot be nil.")
  end
  if @x_error_bar.nil?
      invalid_properties.push("invalid value for 'x_error_bar', x_error_bar cannot be nil.")
  end
  if @x_values.nil?
      invalid_properties.push("invalid value for 'x_values', x_values cannot be nil.")
  end
  if @y_error_bar.nil?
      invalid_properties.push("invalid value for 'y_error_bar', y_error_bar 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



726
727
728
# File 'lib/aspose_cells_cloud/models/series.rb', line 726

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



732
733
734
735
736
737
738
739
740
# File 'lib/aspose_cells_cloud/models/series.rb', line 732

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



720
721
722
# File 'lib/aspose_cells_cloud/models/series.rb', line 720

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



538
539
540
541
542
543
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
581
582
583
584
585
586
587
# File 'lib/aspose_cells_cloud/models/series.rb', line 538

def valid?
  return false if @area.nil?
  return false if @bar3_d_shape_type.nil?
  return false if @border.nil?
  return false if @bubble_scale.nil?
  return false if @bubble_sizes.nil?
  return false if @count_of_data_values.nil?
  return false if @data_labels.nil?
  return false if @display_name.nil?
  return false if @doughnut_hole_size.nil?
  return false if @down_bars.nil?
  return false if @drop_lines.nil?
  return false if @explosion.nil?
  return false if @first_slice_angle.nil?
  return false if @gap_width.nil?
  return false if @has3_d_effect.nil?
  return false if @has_drop_lines.nil?
  return false if @has_hi_lo_lines.nil?
  return false if @has_leader_lines.nil?
  return false if @has_radar_axis_labels.nil?
  return false if @has_series_lines.nil?
  return false if @has_up_down_bars.nil?
  return false if @hi_lo_lines.nil?
  return false if @is_auto_split.nil?
  return false if @is_color_varied.nil?
  return false if @leader_lines.nil?
  return false if @legend_entry.nil?
  return false if @marker.nil?
  return false if @name.nil?
  return false if @overlap.nil?
  return false if @plot_on_second_axis.nil?
  return false if @points.nil?
  return false if @second_plot_size.nil?
  return false if @series_lines.nil?
  return false if @shadow.nil?
  return false if @show_negative_bubbles.nil?
  return false if @size_represents.nil?
  return false if @smooth.nil?
  return false if @split_type.nil?
  return false if @split_value.nil?
  return false if @trend_lines.nil?
  return false if @type.nil?
  return false if @up_bars.nil?
  return false if @values.nil?
  return false if @x_error_bar.nil?
  return false if @x_values.nil?
  return false if @y_error_bar.nil?
  return false if @link.nil?
  return true
end