| 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::ChartSeriesGroup; | ||
| 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::ChartLinesFormat; | ||
| 41 | |||
| 42 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 43 | |||
| 44 | |||
| 45 | # | ||
| 46 | #Chart series group. Defines common properties for a group of series. | ||
| 47 | # | ||
| 48 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 49 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 50 | # | ||
| 51 | |||
| 52 | # | ||
| 53 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 54 | # Do not edit the class manually. | ||
| 55 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 56 | # | ||
| 57 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 58 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 59 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 60 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 61 | |||
| 62 | # new object | ||
| 63 | sub new { | ||
| 64 | my ($class, %args) = @_; | ||
| 65 | |||
| 66 | my $self = bless {}, $class; | ||
| 67 | |||
| 68 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 69 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 70 | $self->$attribute( $args{ $args_key } ); | ||
| 71 | } | ||
| 72 | return $self; | ||
| 73 | } | ||
| 74 | |||
| 75 | # used by JSON for serialization | ||
| 76 | sub TO_JSON { | ||
| 77 | my $self = shift; | ||
| 78 | my $_data = {}; | ||
| 79 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 80 | if (defined $self->{$_key}) { | ||
| 81 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 82 | } | ||
| 83 | } | ||
| 84 | return $_data; | ||
| 85 | } | ||
| 86 | |||
| 87 | |||
| 88 | __PACKAGE__->class_documentation({description => 'Chart series group. Defines common properties for a group of series.', | ||
| 89 | class => 'ChartSeriesGroup', | ||
| 90 | required => [], # TODO | ||
| 91 | } ); | ||
| 92 | |||
| 93 | __PACKAGE__->method_documentation({ | ||
| 94 | 'type' => { | ||
| 95 | datatype => 'string', | ||
| 96 | base_name => 'Type', | ||
| 97 | description => 'Returns a type of this series group.', | ||
| 98 | format => '', | ||
| 99 | read_only => '', | ||
| 100 | }, | ||
| 101 | 'gap_width' => { | ||
| 102 | datatype => 'int', | ||
| 103 | base_name => 'GapWidth', | ||
| 104 | description => 'Specifies the space between bar or column clusters, as a percentage of the bar or column width.', | ||
| 105 | format => '', | ||
| 106 | read_only => '', | ||
| 107 | }, | ||
| 108 | 'gap_depth' => { | ||
| 109 | datatype => 'int', | ||
| 110 | base_name => 'GapDepth', | ||
| 111 | description => 'Returns or sets the distance, as a percentage of the marker width, between the data series in a 3D chart.', | ||
| 112 | format => '', | ||
| 113 | read_only => '', | ||
| 114 | }, | ||
| 115 | 'first_slice_angle' => { | ||
| 116 | datatype => 'int', | ||
| 117 | base_name => 'FirstSliceAngle', | ||
| 118 | description => 'Gets or sets the angle of the first pie or doughnut chart slice, in degrees (clockwise from up, from 0 to 360 degrees).', | ||
| 119 | format => '', | ||
| 120 | read_only => '', | ||
| 121 | }, | ||
| 122 | 'is_color_varied' => { | ||
| 123 | datatype => 'boolean', | ||
| 124 | base_name => 'IsColorVaried', | ||
| 125 | description => 'Specifies that each data marker in the series has a different color.', | ||
| 126 | format => '', | ||
| 127 | read_only => '', | ||
| 128 | }, | ||
| 129 | 'has_series_lines' => { | ||
| 130 | datatype => 'boolean', | ||
| 131 | base_name => 'HasSeriesLines', | ||
| 132 | description => 'True if chart has series lines. Applied to stacked bar and OfPie charts.', | ||
| 133 | format => '', | ||
| 134 | read_only => '', | ||
| 135 | }, | ||
| 136 | 'overlap' => { | ||
| 137 | datatype => 'int', | ||
| 138 | base_name => 'Overlap', | ||
| 139 | description => 'Specifies how much bars and columns shall overlap on 2-D charts (from -100 to 100).', | ||
| 140 | format => '', | ||
| 141 | read_only => '', | ||
| 142 | }, | ||
| 143 | 'second_pie_size' => { | ||
| 144 | datatype => 'int', | ||
| 145 | base_name => 'SecondPieSize', | ||
| 146 | description => 'Specifies the size of the second pie or bar of a pie-of-pie chart or a bar-of-pie chart, as a percentage of the size of the first pie (can be between 5 and 200 percents).', | ||
| 147 | format => '', | ||
| 148 | read_only => '', | ||
| 149 | }, | ||
| 150 | 'pie_split_position' => { | ||
| 151 | datatype => 'double', | ||
| 152 | base_name => 'PieSplitPosition', | ||
| 153 | description => 'Specifies a value that shall be used to determine which data points are in the second pie or bar on a pie-of-pie or bar-of-pie chart. Is used together with PieSplitBy property.', | ||
| 154 | format => '', | ||
| 155 | read_only => '', | ||
| 156 | }, | ||
| 157 | 'pie_split_by' => { | ||
| 158 | datatype => 'string', | ||
| 159 | base_name => 'PieSplitBy', | ||
| 160 | description => 'Specifies how to determine which data points are in the second pie or bar on a pie-of-pie or bar-of-pie chart.', | ||
| 161 | format => '', | ||
| 162 | read_only => '', | ||
| 163 | }, | ||
| 164 | 'doughnut_hole_size' => { | ||
| 165 | datatype => 'int', | ||
| 166 | base_name => 'DoughnutHoleSize', | ||
| 167 | description => 'Specifies the size of the hole in a doughnut chart (can be between 10 and 90 percents of the size of the plot area.).', | ||
| 168 | format => '', | ||
| 169 | read_only => '', | ||
| 170 | }, | ||
| 171 | 'bubble_size_scale' => { | ||
| 172 | datatype => 'int', | ||
| 173 | base_name => 'BubbleSizeScale', | ||
| 174 | description => 'Specifies the scale factor for the bubble chart (can be between 0 and 300 percents of the default size). Read/write Int32.', | ||
| 175 | format => '', | ||
| 176 | read_only => '', | ||
| 177 | }, | ||
| 178 | 'hi_low_lines_format' => { | ||
| 179 | datatype => 'ChartLinesFormat', | ||
| 180 | base_name => 'HiLowLinesFormat', | ||
| 181 | description => 'Specifies HiLowLines format. HiLowLines applied with HiLowClose, OpenHiLowClose, VolumeHiLowClose and VolumeOpenHiLowClose chart types.', | ||
| 182 | format => '', | ||
| 183 | read_only => '', | ||
| 184 | }, | ||
| 185 | 'bubble_size_representation' => { | ||
| 186 | datatype => 'string', | ||
| 187 | base_name => 'BubbleSizeRepresentation', | ||
| 188 | description => 'Specifies how the bubble size values are represented on the bubble chart. Read/write BubbleSizeRepresentationType.', | ||
| 189 | format => '', | ||
| 190 | read_only => '', | ||
| 191 | }, | ||
| 192 | }); | ||
| 193 | |||
| 194 | __PACKAGE__->swagger_types( { | ||
| 195 | 'type' => 'string', | ||
| 196 | 'gap_width' => 'int', | ||
| 197 | 'gap_depth' => 'int', | ||
| 198 | 'first_slice_angle' => 'int', | ||
| 199 | 'is_color_varied' => 'boolean', | ||
| 200 | 'has_series_lines' => 'boolean', | ||
| 201 | 'overlap' => 'int', | ||
| 202 | 'second_pie_size' => 'int', | ||
| 203 | 'pie_split_position' => 'double', | ||
| 204 | 'pie_split_by' => 'string', | ||
| 205 | 'doughnut_hole_size' => 'int', | ||
| 206 | 'bubble_size_scale' => 'int', | ||
| 207 | 'hi_low_lines_format' => 'ChartLinesFormat', | ||
| 208 | 'bubble_size_representation' => 'string' | ||
| 209 | } ); | ||
| 210 | |||
| 211 | __PACKAGE__->attribute_map( { | ||
| 212 | 'type' => 'Type', | ||
| 213 | 'gap_width' => 'GapWidth', | ||
| 214 | 'gap_depth' => 'GapDepth', | ||
| 215 | 'first_slice_angle' => 'FirstSliceAngle', | ||
| 216 | 'is_color_varied' => 'IsColorVaried', | ||
| 217 | 'has_series_lines' => 'HasSeriesLines', | ||
| 218 | 'overlap' => 'Overlap', | ||
| 219 | 'second_pie_size' => 'SecondPieSize', | ||
| 220 | 'pie_split_position' => 'PieSplitPosition', | ||
| 221 | 'pie_split_by' => 'PieSplitBy', | ||
| 222 | 'doughnut_hole_size' => 'DoughnutHoleSize', | ||
| 223 | 'bubble_size_scale' => 'BubbleSizeScale', | ||
| 224 | 'hi_low_lines_format' => 'HiLowLinesFormat', | ||
| 225 | 'bubble_size_representation' => 'BubbleSizeRepresentation' | ||
| 226 | } ); | ||
| 227 | |||
| 228 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 229 | |||
| 230 | |||
| 231 | 1; |