| 1 | =begin comment | ||
| 2 | |||
| 3 | Copyright (c) 2019 Aspose Pty Ltd | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | of this software and associated documentation files (the "Software"), to deal | ||
| 7 | in the Software without restriction, including without limitation the rights | ||
| 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | copies of the Software, and to permit persons to whom the Software is | ||
| 10 | furnished to do so, subject to the following conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in all | ||
| 13 | copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | SOFTWARE. | ||
| 22 | |||
| 23 | =end comment | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | package AsposeSlidesCloud::Object::ScatterSeries; | ||
| 28 | |||
| 29 | require 5.6.0; | ||
| 30 | use strict; | ||
| 31 | use warnings; | ||
| 32 | use utf8; | ||
| 33 | use JSON qw(decode_json); | ||
| 34 | use Data::Dumper; | ||
| 35 | use Module::Runtime qw(use_module); | ||
| 36 | use Log::Any qw($log); | ||
| 37 | use Date::Parse; | ||
| 38 | use DateTime; | ||
| 39 | |||
| 40 | use AsposeSlidesCloud::Object::DataSource; | ||
| 41 | use AsposeSlidesCloud::Object::EffectFormat; | ||
| 42 | use AsposeSlidesCloud::Object::FillFormat; | ||
| 43 | use AsposeSlidesCloud::Object::LineFormat; | ||
| 44 | use AsposeSlidesCloud::Object::ScatterChartDataPoint; | ||
| 45 | use AsposeSlidesCloud::Object::SeriesMarker; | ||
| 46 | use AsposeSlidesCloud::Object::XYSeries; | ||
| 47 | |||
| 48 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 49 | |||
| 50 | |||
| 51 | # | ||
| 52 | #A scatter series | ||
| 53 | # | ||
| 54 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 55 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 56 | # | ||
| 57 | |||
| 58 | # | ||
| 59 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 60 | # Do not edit the class manually. | ||
| 61 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 62 | # | ||
| 63 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 64 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 65 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 66 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 67 | |||
| 68 | # new object | ||
| 69 | sub new { | ||
| 70 | my ($class, %args) = @_; | ||
| 71 | |||
| 72 | my $self = bless {}, $class; | ||
| 73 | |||
| 74 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 75 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 76 | $self->$attribute( $args{ $args_key } ); | ||
| 77 | } | ||
| 78 | $self->{ data_point_type } = 'Scatter'; | ||
| 79 | return $self; | ||
| 80 | } | ||
| 81 | |||
| 82 | # used by JSON for serialization | ||
| 83 | sub TO_JSON { | ||
| 84 | my $self = shift; | ||
| 85 | my $_data = {}; | ||
| 86 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 87 | if (defined $self->{$_key}) { | ||
| 88 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 89 | } | ||
| 90 | } | ||
| 91 | return $_data; | ||
| 92 | } | ||
| 93 | |||
| 94 | |||
| 95 | __PACKAGE__->class_documentation({description => 'A scatter series', | ||
| 96 | class => 'ScatterSeries', | ||
| 97 | required => [], # TODO | ||
| 98 | } ); | ||
| 99 | |||
| 100 | __PACKAGE__->method_documentation({ | ||
| 101 | 'type' => { | ||
| 102 | datatype => 'string', | ||
| 103 | base_name => 'Type', | ||
| 104 | description => 'Series type.', | ||
| 105 | format => '', | ||
| 106 | read_only => '', | ||
| 107 | }, | ||
| 108 | 'name' => { | ||
| 109 | datatype => 'string', | ||
| 110 | base_name => 'Name', | ||
| 111 | description => 'Series name.', | ||
| 112 | format => '', | ||
| 113 | read_only => '', | ||
| 114 | }, | ||
| 115 | 'data_source_for_series_name' => { | ||
| 116 | datatype => 'DataSource', | ||
| 117 | base_name => 'DataSourceForSeriesName', | ||
| 118 | description => 'Series name data source.', | ||
| 119 | format => '', | ||
| 120 | read_only => '', | ||
| 121 | }, | ||
| 122 | 'is_color_varied' => { | ||
| 123 | datatype => 'boolean', | ||
| 124 | base_name => 'IsColorVaried', | ||
| 125 | description => 'True if each data marker in the series has a different color.', | ||
| 126 | format => '', | ||
| 127 | read_only => '', | ||
| 128 | }, | ||
| 129 | 'inverted_solid_fill_color' => { | ||
| 130 | datatype => 'string', | ||
| 131 | base_name => 'InvertedSolidFillColor', | ||
| 132 | description => 'Invert solid color for the series.', | ||
| 133 | format => '', | ||
| 134 | read_only => '', | ||
| 135 | }, | ||
| 136 | 'smooth' => { | ||
| 137 | datatype => 'boolean', | ||
| 138 | base_name => 'Smooth', | ||
| 139 | description => 'True if curve smoothing is turned on. Applies only to line and scatter connected by lines charts.', | ||
| 140 | format => '', | ||
| 141 | read_only => '', | ||
| 142 | }, | ||
| 143 | 'plot_on_second_axis' => { | ||
| 144 | datatype => 'boolean', | ||
| 145 | base_name => 'PlotOnSecondAxis', | ||
| 146 | description => 'True if the series is plotted on second value axis.', | ||
| 147 | format => '', | ||
| 148 | read_only => '', | ||
| 149 | }, | ||
| 150 | 'order' => { | ||
| 151 | datatype => 'int', | ||
| 152 | base_name => 'Order', | ||
| 153 | description => 'Series order.', | ||
| 154 | format => '', | ||
| 155 | read_only => '', | ||
| 156 | }, | ||
| 157 | 'invert_if_negative' => { | ||
| 158 | datatype => 'boolean', | ||
| 159 | base_name => 'InvertIfNegative', | ||
| 160 | description => 'True if the series shall invert its colors if the value is negative. Applies to bar, column and bubble series.', | ||
| 161 | format => '', | ||
| 162 | read_only => '', | ||
| 163 | }, | ||
| 164 | 'explosion' => { | ||
| 165 | datatype => 'int', | ||
| 166 | base_name => 'Explosion', | ||
| 167 | description => 'The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.', | ||
| 168 | format => '', | ||
| 169 | read_only => '', | ||
| 170 | }, | ||
| 171 | 'marker' => { | ||
| 172 | datatype => 'SeriesMarker', | ||
| 173 | base_name => 'Marker', | ||
| 174 | description => 'Series marker.', | ||
| 175 | format => '', | ||
| 176 | read_only => '', | ||
| 177 | }, | ||
| 178 | 'fill_format' => { | ||
| 179 | datatype => 'FillFormat', | ||
| 180 | base_name => 'FillFormat', | ||
| 181 | description => 'Fill properties set for the series.', | ||
| 182 | format => '', | ||
| 183 | read_only => '', | ||
| 184 | }, | ||
| 185 | 'effect_format' => { | ||
| 186 | datatype => 'EffectFormat', | ||
| 187 | base_name => 'EffectFormat', | ||
| 188 | description => 'Effect properties set for the series.', | ||
| 189 | format => '', | ||
| 190 | read_only => '', | ||
| 191 | }, | ||
| 192 | 'line_format' => { | ||
| 193 | datatype => 'LineFormat', | ||
| 194 | base_name => 'LineFormat', | ||
| 195 | description => 'Line properties set for the series.', | ||
| 196 | format => '', | ||
| 197 | read_only => '', | ||
| 198 | }, | ||
| 199 | 'data_point_type' => { | ||
| 200 | datatype => 'string', | ||
| 201 | base_name => 'DataPointType', | ||
| 202 | description => 'Data point type.', | ||
| 203 | format => '', | ||
| 204 | read_only => '', | ||
| 205 | }, | ||
| 206 | 'number_format_of_y_values' => { | ||
| 207 | datatype => 'string', | ||
| 208 | base_name => 'NumberFormatOfYValues', | ||
| 209 | description => 'The number format for the series y values.', | ||
| 210 | format => '', | ||
| 211 | read_only => '', | ||
| 212 | }, | ||
| 213 | 'number_format_of_x_values' => { | ||
| 214 | datatype => 'string', | ||
| 215 | base_name => 'NumberFormatOfXValues', | ||
| 216 | description => 'The number format for the series x values.', | ||
| 217 | format => '', | ||
| 218 | read_only => '', | ||
| 219 | }, | ||
| 220 | 'data_source_for_x_values' => { | ||
| 221 | datatype => 'DataSource', | ||
| 222 | base_name => 'DataSourceForXValues', | ||
| 223 | description => 'Data source type for X Values.', | ||
| 224 | format => '', | ||
| 225 | read_only => '', | ||
| 226 | }, | ||
| 227 | 'data_source_for_y_values' => { | ||
| 228 | datatype => 'DataSource', | ||
| 229 | base_name => 'DataSourceForYValues', | ||
| 230 | description => 'Data source type for Y Values.', | ||
| 231 | format => '', | ||
| 232 | read_only => '', | ||
| 233 | }, | ||
| 234 | 'data_points' => { | ||
| 235 | datatype => 'ARRAY[ScatterChartDataPoint]', | ||
| 236 | base_name => 'DataPoints', | ||
| 237 | description => 'Gets or sets the values.', | ||
| 238 | format => '', | ||
| 239 | read_only => '', | ||
| 240 | }, | ||
| 241 | }); | ||
| 242 | |||
| 243 | __PACKAGE__->swagger_types( { | ||
| 244 | 'type' => 'string', | ||
| 245 | 'name' => 'string', | ||
| 246 | 'data_source_for_series_name' => 'DataSource', | ||
| 247 | 'is_color_varied' => 'boolean', | ||
| 248 | 'inverted_solid_fill_color' => 'string', | ||
| 249 | 'smooth' => 'boolean', | ||
| 250 | 'plot_on_second_axis' => 'boolean', | ||
| 251 | 'order' => 'int', | ||
| 252 | 'invert_if_negative' => 'boolean', | ||
| 253 | 'explosion' => 'int', | ||
| 254 | 'marker' => 'SeriesMarker', | ||
| 255 | 'fill_format' => 'FillFormat', | ||
| 256 | 'effect_format' => 'EffectFormat', | ||
| 257 | 'line_format' => 'LineFormat', | ||
| 258 | 'data_point_type' => 'string', | ||
| 259 | 'number_format_of_y_values' => 'string', | ||
| 260 | 'number_format_of_x_values' => 'string', | ||
| 261 | 'data_source_for_x_values' => 'DataSource', | ||
| 262 | 'data_source_for_y_values' => 'DataSource', | ||
| 263 | 'data_points' => 'ARRAY[ScatterChartDataPoint]' | ||
| 264 | } ); | ||
| 265 | |||
| 266 | __PACKAGE__->attribute_map( { | ||
| 267 | 'type' => 'Type', | ||
| 268 | 'name' => 'Name', | ||
| 269 | 'data_source_for_series_name' => 'DataSourceForSeriesName', | ||
| 270 | 'is_color_varied' => 'IsColorVaried', | ||
| 271 | 'inverted_solid_fill_color' => 'InvertedSolidFillColor', | ||
| 272 | 'smooth' => 'Smooth', | ||
| 273 | 'plot_on_second_axis' => 'PlotOnSecondAxis', | ||
| 274 | 'order' => 'Order', | ||
| 275 | 'invert_if_negative' => 'InvertIfNegative', | ||
| 276 | 'explosion' => 'Explosion', | ||
| 277 | 'marker' => 'Marker', | ||
| 278 | 'fill_format' => 'FillFormat', | ||
| 279 | 'effect_format' => 'EffectFormat', | ||
| 280 | 'line_format' => 'LineFormat', | ||
| 281 | 'data_point_type' => 'DataPointType', | ||
| 282 | 'number_format_of_y_values' => 'NumberFormatOfYValues', | ||
| 283 | 'number_format_of_x_values' => 'NumberFormatOfXValues', | ||
| 284 | 'data_source_for_x_values' => 'DataSourceForXValues', | ||
| 285 | 'data_source_for_y_values' => 'DataSourceForYValues', | ||
| 286 | 'data_points' => 'DataPoints' | ||
| 287 | } ); | ||
| 288 | |||
| 289 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 290 | |||
| 291 | |||
| 292 | 1; |