class AsposeCellsCloud::Chart

Attributes

auto_scaling[RW]

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.

back_wall[RW]

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

category_axis[RW]

Gets the chart’s X axis.

chart_area[RW]

Gets the chart area in the worksheet.

chart_data_table[RW]

Represents the chart data table.

chart_object[RW]

Represents the chartShape;

depth_percent[RW]

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

elevation[RW]

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

first_slice_angle[RW]

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.

floor[RW]

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

gap_depth[RW]

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.

gap_width[RW]

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.

height_percent[RW]

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

hide_pivot_field_buttons[RW]

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

is3_d[RW]

Indicates whether the chart is a 3d chart.

is_rectangular_cornered[RW]

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

legend[RW]

Gets the chart legend.

n_series[RW]

Gets a collection representing the data series in the chart.

name[RW]

Represents chart name.

page_setup[RW]

Represents the page setup description in this chart.

perspective[RW]

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.

pivot_source[RW]

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

placement[RW]

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

plot_area[RW]

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

plot_empty_cells_type[RW]

Gets and sets how to plot the empty cells.

plot_visible_cells[RW]

Indicates whether only plot visible cells.

print_size[RW]

Gets and sets the printed chart size.

right_angle_axes[RW]

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

rotation_angle[RW]

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

second_category_axis[RW]

Gets the chart’s second X axis.

second_value_axis[RW]

Gets the chart’s second Y axis.

series_axis[RW]

Gets the chart’s series axis.

shapes[RW]

Returns all drawing shapes in this chart.

show_data_table[RW]

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

show_legend[RW]

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

side_wall[RW]

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

size_with_window[RW]

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

style[RW]

Gets and sets the builtin style.

title[RW]

Represents chart title.

type[RW]

Represents chart type.

value_axis[RW]

Gets the chart’s Y axis.

walls[RW]

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

walls_and_gridlines2_d[RW]

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

Public Class Methods

attribute_map() click to toggle source

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

# 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
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# 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
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_cells_cloud/models/chart.rb, line 174
def self.swagger_types
  {
    :'auto_scaling' => :'BOOLEAN',
    :'back_wall' => :'Walls',
    :'category_axis' => :'Axis',
    :'chart_area' => :'ChartArea',
    :'chart_data_table' => :'ChartDataTable',
    :'chart_object' => :'LinkElement',
    :'depth_percent' => :'Integer',
    :'elevation' => :'Integer',
    :'first_slice_angle' => :'Integer',
    :'floor' => :'Floor',
    :'gap_depth' => :'Integer',
    :'gap_width' => :'Integer',
    :'height_percent' => :'Integer',
    :'hide_pivot_field_buttons' => :'BOOLEAN',
    :'is3_d' => :'BOOLEAN',
    :'is_rectangular_cornered' => :'BOOLEAN',
    :'legend' => :'Legend',
    :'name' => :'String',
    :'n_series' => :'SeriesItems',
    :'page_setup' => :'LinkElement',
    :'perspective' => :'Integer',
    :'pivot_source' => :'String',
    :'placement' => :'String',
    :'plot_area' => :'PlotArea',
    :'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' => :'Axis',
    :'walls' => :'LinkElement',
    :'walls_and_gridlines2_d' => :'BOOLEAN',
    :'link' => :'Link'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# 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) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# 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) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# 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) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# 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) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_cells_cloud/models/chart.rb, line 610
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# 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_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons

# 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_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/aspose_cells_cloud/models/chart.rb, line 690
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# 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_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/aspose_cells_cloud/models/chart.rb, line 684
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# 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