Class: AsposeSlidesCloud::OneValueSeries
- Inherits:
-
Series
- Object
- BaseObject
- Series
- AsposeSlidesCloud::OneValueSeries
- Defined in:
- lib/aspose_slides_cloud/models/one_value_series.rb
Overview
One value series.
Instance Attribute Summary collapse
-
#data_points ⇒ Object
Gets or sets the values.
-
#data_source_for_values ⇒ Object
Data source type for values.
-
#number_format_of_values ⇒ Object
The number format for the series values.
-
#quartile_method ⇒ Object
Quartile method.
-
#show_connector_lines ⇒ Object
True if inner points are shown.
-
#show_inner_points ⇒ Object
True if inner points are shown.
-
#show_mean_line ⇒ Object
True if mean line is shown.
-
#show_mean_markers ⇒ Object
True if mean markers are shown.
-
#show_outlier_points ⇒ Object
True if outlier points are shown.
Attributes inherited from Series
#data_point_type, #data_source_for_series_name, #effect_format, #explosion, #fill_format, #invert_if_negative, #inverted_solid_fill_color, #is_color_varied, #line_format, #marker, #name, #order, #plot_on_second_axis, #smooth, #type
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ OneValueSeries
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ OneValueSeries
Initializes the object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 87 def initialize(attributes = {}) super if attributes.has_key?(:'DataPoints') if (value = attributes[:'DataPoints']).is_a?(Array) self.data_points = value end end if attributes.has_key?(:'NumberFormatOfValues') self.number_format_of_values = attributes[:'NumberFormatOfValues'] end if attributes.has_key?(:'DataSourceForValues') self.data_source_for_values = attributes[:'DataSourceForValues'] end if attributes.has_key?(:'ShowConnectorLines') self.show_connector_lines = attributes[:'ShowConnectorLines'] end if attributes.has_key?(:'QuartileMethod') self.quartile_method = attributes[:'QuartileMethod'] end if attributes.has_key?(:'ShowInnerPoints') self.show_inner_points = attributes[:'ShowInnerPoints'] end if attributes.has_key?(:'ShowMeanLine') self.show_mean_line = attributes[:'ShowMeanLine'] end if attributes.has_key?(:'ShowMeanMarkers') self.show_mean_markers = attributes[:'ShowMeanMarkers'] end if attributes.has_key?(:'ShowOutlierPoints') self.show_outlier_points = attributes[:'ShowOutlierPoints'] end self.data_point_type = 'OneValue' end |
Instance Attribute Details
#data_points ⇒ Object
Gets or sets the values.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 29 def data_points @data_points end |
#data_source_for_values ⇒ Object
Data source type for values.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 35 def data_source_for_values @data_source_for_values end |
#number_format_of_values ⇒ Object
The number format for the series values.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 32 def number_format_of_values @number_format_of_values end |
#quartile_method ⇒ Object
Quartile method. Applied to BoxAndWhisker series only.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 41 def quartile_method @quartile_method end |
#show_connector_lines ⇒ Object
True if inner points are shown. Applied to Waterfall series only.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 38 def show_connector_lines @show_connector_lines end |
#show_inner_points ⇒ Object
True if inner points are shown. Applied to BoxAndWhisker series only.
44 45 46 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 44 def show_inner_points @show_inner_points end |
#show_mean_line ⇒ Object
True if mean line is shown. Applied to BoxAndWhisker series only.
47 48 49 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 47 def show_mean_line @show_mean_line end |
#show_mean_markers ⇒ Object
True if mean markers are shown. Applied to BoxAndWhisker series only.
50 51 52 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 50 def show_mean_markers @show_mean_markers end |
#show_outlier_points ⇒ Object
True if outlier points are shown. Applied to BoxAndWhisker series only.
53 54 55 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 53 def show_outlier_points @show_outlier_points end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 56 def self.attribute_map super.merge({ :'data_points' => :'DataPoints', :'number_format_of_values' => :'NumberFormatOfValues', :'data_source_for_values' => :'DataSourceForValues', :'show_connector_lines' => :'ShowConnectorLines', :'quartile_method' => :'QuartileMethod', :'show_inner_points' => :'ShowInnerPoints', :'show_mean_line' => :'ShowMeanLine', :'show_mean_markers' => :'ShowMeanMarkers', :'show_outlier_points' => :'ShowOutlierPoints', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 71 def self.swagger_types super.merge({ :'data_points' => :'Array<OneValueChartDataPoint>', :'number_format_of_values' => :'String', :'data_source_for_values' => :'DataSource', :'show_connector_lines' => :'BOOLEAN', :'quartile_method' => :'String', :'show_inner_points' => :'BOOLEAN', :'show_mean_line' => :'BOOLEAN', :'show_mean_markers' => :'BOOLEAN', :'show_outlier_points' => :'BOOLEAN', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 158 def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && name == o.name && data_source_for_series_name == o.data_source_for_series_name && is_color_varied == o.is_color_varied && inverted_solid_fill_color == o.inverted_solid_fill_color && smooth == o.smooth && plot_on_second_axis == o.plot_on_second_axis && order == o.order && invert_if_negative == o.invert_if_negative && explosion == o.explosion && marker == o.marker && fill_format == o.fill_format && effect_format == o.effect_format && line_format == o.line_format && data_point_type == o.data_point_type && data_points == o.data_points && number_format_of_values == o.number_format_of_values && data_source_for_values == o.data_source_for_values && show_connector_lines == o.show_connector_lines && quartile_method == o.quartile_method && show_inner_points == o.show_inner_points && show_mean_line == o.show_mean_line && show_mean_markers == o.show_mean_markers && show_outlier_points == o.show_outlier_points end |
#eql?(o) ⇒ Boolean
189 190 191 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 189 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
195 196 197 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 195 def hash [type, name, data_source_for_series_name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, data_points, number_format_of_values, data_source_for_values, show_connector_lines, quartile_method, show_inner_points, show_mean_line, show_mean_markers, show_outlier_points].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
132 133 134 135 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 132 def list_invalid_properties invalid_properties = super invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
139 140 141 142 143 144 |
# File 'lib/aspose_slides_cloud/models/one_value_series.rb', line 139 def valid? return false if !super quartile_method_validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive']) return false unless quartile_method_validator.valid?(@quartile_method) true end |