| 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::XYSeries; | ||
| 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::Series; | ||
| 45 | use AsposeSlidesCloud::Object::SeriesMarker; | ||
| 46 | |||
| 47 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 48 | |||
| 49 | |||
| 50 | # | ||
| 51 | #Common properties for Bubble and Scatter series. | ||
| 52 | # | ||
| 53 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 54 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 55 | # | ||
| 56 | |||
| 57 | # | ||
| 58 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 59 | # Do not edit the class manually. | ||
| 60 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 61 | # | ||
| 62 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 63 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 64 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 65 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 66 | |||
| 67 | # new object | ||
| 68 | sub new { | ||
| 69 | my ($class, %args) = @_; | ||
| 70 | |||
| 71 | my $self = bless {}, $class; | ||
| 72 | |||
| 73 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 74 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 75 | $self->$attribute( $args{ $args_key } ); | ||
| 76 | } | ||
| 77 | return $self; | ||
| 78 | } | ||
| 79 | |||
| 80 | # used by JSON for serialization | ||
| 81 | sub TO_JSON { | ||
| 82 | my $self = shift; | ||
| 83 | my $_data = {}; | ||
| 84 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 85 | if (defined $self->{$_key}) { | ||
| 86 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 87 | } | ||
| 88 | } | ||
| 89 | return $_data; | ||
| 90 | } | ||
| 91 | |||
| 92 | |||
| 93 | __PACKAGE__->class_documentation({description => 'Common properties for Bubble and Scatter series. ', | ||
| 94 | class => 'XYSeries', | ||
| 95 | required => [], # TODO | ||
| 96 | } ); | ||
| 97 | |||
| 98 | __PACKAGE__->method_documentation({ | ||
| 99 | 'type' => { | ||
| 100 | datatype => 'string', | ||
| 101 | base_name => 'Type', | ||
| 102 | description => 'Series type.', | ||
| 103 | format => '', | ||
| 104 | read_only => '', | ||
| 105 | }, | ||
| 106 | 'name' => { | ||
| 107 | datatype => 'string', | ||
| 108 | base_name => 'Name', | ||
| 109 | description => 'Series name.', | ||
| 110 | format => '', | ||
| 111 | read_only => '', | ||
| 112 | }, | ||
| 113 | 'data_source_for_series_name' => { | ||
| 114 | datatype => 'DataSource', | ||
| 115 | base_name => 'DataSourceForSeriesName', | ||
| 116 | description => 'Series name data source.', | ||
| 117 | format => '', | ||
| 118 | read_only => '', | ||
| 119 | }, | ||
| 120 | 'is_color_varied' => { | ||
| 121 | datatype => 'boolean', | ||
| 122 | base_name => 'IsColorVaried', | ||
| 123 | description => 'True if each data marker in the series has a different color.', | ||
| 124 | format => '', | ||
| 125 | read_only => '', | ||
| 126 | }, | ||
| 127 | 'inverted_solid_fill_color' => { | ||
| 128 | datatype => 'string', | ||
| 129 | base_name => 'InvertedSolidFillColor', | ||
| 130 | description => 'Invert solid color for the series.', | ||
| 131 | format => '', | ||
| 132 | read_only => '', | ||
| 133 | }, | ||
| 134 | 'smooth' => { | ||
| 135 | datatype => 'boolean', | ||
| 136 | base_name => 'Smooth', | ||
| 137 | description => 'True if curve smoothing is turned on. Applies only to line and scatter connected by lines charts.', | ||
| 138 | format => '', | ||
| 139 | read_only => '', | ||
| 140 | }, | ||
| 141 | 'plot_on_second_axis' => { | ||
| 142 | datatype => 'boolean', | ||
| 143 | base_name => 'PlotOnSecondAxis', | ||
| 144 | description => 'True if the series is plotted on second value axis.', | ||
| 145 | format => '', | ||
| 146 | read_only => '', | ||
| 147 | }, | ||
| 148 | 'order' => { | ||
| 149 | datatype => 'int', | ||
| 150 | base_name => 'Order', | ||
| 151 | description => 'Series order.', | ||
| 152 | format => '', | ||
| 153 | read_only => '', | ||
| 154 | }, | ||
| 155 | 'invert_if_negative' => { | ||
| 156 | datatype => 'boolean', | ||
| 157 | base_name => 'InvertIfNegative', | ||
| 158 | description => 'True if the series shall invert its colors if the value is negative. Applies to bar, column and bubble series.', | ||
| 159 | format => '', | ||
| 160 | read_only => '', | ||
| 161 | }, | ||
| 162 | 'explosion' => { | ||
| 163 | datatype => 'int', | ||
| 164 | base_name => 'Explosion', | ||
| 165 | description => 'The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.', | ||
| 166 | format => '', | ||
| 167 | read_only => '', | ||
| 168 | }, | ||
| 169 | 'marker' => { | ||
| 170 | datatype => 'SeriesMarker', | ||
| 171 | base_name => 'Marker', | ||
| 172 | description => 'Series marker.', | ||
| 173 | format => '', | ||
| 174 | read_only => '', | ||
| 175 | }, | ||
| 176 | 'fill_format' => { | ||
| 177 | datatype => 'FillFormat', | ||
| 178 | base_name => 'FillFormat', | ||
| 179 | description => 'Fill properties set for the series.', | ||
| 180 | format => '', | ||
| 181 | read_only => '', | ||
| 182 | }, | ||
| 183 | 'effect_format' => { | ||
| 184 | datatype => 'EffectFormat', | ||
| 185 | base_name => 'EffectFormat', | ||
| 186 | description => 'Effect properties set for the series.', | ||
| 187 | format => '', | ||
| 188 | read_only => '', | ||
| 189 | }, | ||
| 190 | 'line_format' => { | ||
| 191 | datatype => 'LineFormat', | ||
| 192 | base_name => 'LineFormat', | ||
| 193 | description => 'Line properties set for the series.', | ||
| 194 | format => '', | ||
| 195 | read_only => '', | ||
| 196 | }, | ||
| 197 | 'data_point_type' => { | ||
| 198 | datatype => 'string', | ||
| 199 | base_name => 'DataPointType', | ||
| 200 | description => '', | ||
| 201 | format => '', | ||
| 202 | read_only => '', | ||
| 203 | }, | ||
| 204 | 'number_format_of_y_values' => { | ||
| 205 | datatype => 'string', | ||
| 206 | base_name => 'NumberFormatOfYValues', | ||
| 207 | description => 'The number format for the series y values.', | ||
| 208 | format => '', | ||
| 209 | read_only => '', | ||
| 210 | }, | ||
| 211 | 'number_format_of_x_values' => { | ||
| 212 | datatype => 'string', | ||
| 213 | base_name => 'NumberFormatOfXValues', | ||
| 214 | description => 'The number format for the series x values.', | ||
| 215 | format => '', | ||
| 216 | read_only => '', | ||
| 217 | }, | ||
| 218 | 'data_source_for_x_values' => { | ||
| 219 | datatype => 'DataSource', | ||
| 220 | base_name => 'DataSourceForXValues', | ||
| 221 | description => 'Data source type for X Values.', | ||
| 222 | format => '', | ||
| 223 | read_only => '', | ||
| 224 | }, | ||
| 225 | 'data_source_for_y_values' => { | ||
| 226 | datatype => 'DataSource', | ||
| 227 | base_name => 'DataSourceForYValues', | ||
| 228 | description => 'Data source type for Y Values.', | ||
| 229 | format => '', | ||
| 230 | read_only => '', | ||
| 231 | }, | ||
| 232 | }); | ||
| 233 | |||
| 234 | __PACKAGE__->swagger_types( { | ||
| 235 | 'type' => 'string', | ||
| 236 | 'name' => 'string', | ||
| 237 | 'data_source_for_series_name' => 'DataSource', | ||
| 238 | 'is_color_varied' => 'boolean', | ||
| 239 | 'inverted_solid_fill_color' => 'string', | ||
| 240 | 'smooth' => 'boolean', | ||
| 241 | 'plot_on_second_axis' => 'boolean', | ||
| 242 | 'order' => 'int', | ||
| 243 | 'invert_if_negative' => 'boolean', | ||
| 244 | 'explosion' => 'int', | ||
| 245 | 'marker' => 'SeriesMarker', | ||
| 246 | 'fill_format' => 'FillFormat', | ||
| 247 | 'effect_format' => 'EffectFormat', | ||
| 248 | 'line_format' => 'LineFormat', | ||
| 249 | 'data_point_type' => 'string', | ||
| 250 | 'number_format_of_y_values' => 'string', | ||
| 251 | 'number_format_of_x_values' => 'string', | ||
| 252 | 'data_source_for_x_values' => 'DataSource', | ||
| 253 | 'data_source_for_y_values' => 'DataSource' | ||
| 254 | } ); | ||
| 255 | |||
| 256 | __PACKAGE__->attribute_map( { | ||
| 257 | 'type' => 'Type', | ||
| 258 | 'name' => 'Name', | ||
| 259 | 'data_source_for_series_name' => 'DataSourceForSeriesName', | ||
| 260 | 'is_color_varied' => 'IsColorVaried', | ||
| 261 | 'inverted_solid_fill_color' => 'InvertedSolidFillColor', | ||
| 262 | 'smooth' => 'Smooth', | ||
| 263 | 'plot_on_second_axis' => 'PlotOnSecondAxis', | ||
| 264 | 'order' => 'Order', | ||
| 265 | 'invert_if_negative' => 'InvertIfNegative', | ||
| 266 | 'explosion' => 'Explosion', | ||
| 267 | 'marker' => 'Marker', | ||
| 268 | 'fill_format' => 'FillFormat', | ||
| 269 | 'effect_format' => 'EffectFormat', | ||
| 270 | 'line_format' => 'LineFormat', | ||
| 271 | 'data_point_type' => 'DataPointType', | ||
| 272 | 'number_format_of_y_values' => 'NumberFormatOfYValues', | ||
| 273 | 'number_format_of_x_values' => 'NumberFormatOfXValues', | ||
| 274 | 'data_source_for_x_values' => 'DataSourceForXValues', | ||
| 275 | 'data_source_for_y_values' => 'DataSourceForYValues' | ||
| 276 | } ); | ||
| 277 | |||
| 278 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 279 | |||
| 280 | |||
| 281 | 1; |