class AsposeSlidesCloud::OneValueChartDataPoint

One value chart data point.

Attributes

invert_if_negative[RW]

True if the data point shall invert its colors if the value is negative. Applies to bar, column and bubble series.

set_as_total[RW]

SetAsTotal. Applied to Waterfall data points only.

value[RW]

Value.

value_formula[RW]

Spreadsheet formula in A1-style.

Public Class Methods

attribute_map() click to toggle source

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

# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 41
def self.attribute_map
  super.merge({
    :'value' => :'Value',
    :'value_formula' => :'ValueFormula',
    :'set_as_total' => :'SetAsTotal',
    :'invert_if_negative' => :'InvertIfNegative',
  })
end
new(attributes = {}) click to toggle source

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

Calls superclass method AsposeSlidesCloud::DataPoint::new
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 62
def initialize(attributes = {})
  super

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

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

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

  if attributes.has_key?(:'InvertIfNegative')
    self.invert_if_negative = attributes[:'InvertIfNegative']
  end
  self.type = 'OneValue'
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 51
def self.swagger_types
  super.merge({
    :'value' => :'Float',
    :'value_formula' => :'String',
    :'set_as_total' => :'BOOLEAN',
    :'invert_if_negative' => :'BOOLEAN',
  })
end

Public Instance Methods

==(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 99
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      fill_format == o.fill_format &&
      effect_format == o.effect_format &&
      three_d_format == o.three_d_format &&
      line_format == o.line_format &&
      marker == o.marker &&
      type == o.type &&
      value == o.value &&
      value_formula == o.value_formula &&
      set_as_total == o.set_as_total &&
      invert_if_negative == o.invert_if_negative
end
eql?(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 116
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_slides_cloud/models/one_value_chart_data_point.rb, line 122
def hash
  [fill_format, effect_format, three_d_format, line_format, marker, type, value, value_formula, set_as_total, invert_if_negative].hash
end
list_invalid_properties() click to toggle source

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

# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 85
def list_invalid_properties
  invalid_properties = super
  invalid_properties
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

Calls superclass method AsposeSlidesCloud::DataPoint#valid?
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 92
def valid?
  return false if !super
  true
end