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