AsposeCellsCloud-CellsApi
view release on metacpan or search on metacpan
lib/AsposeCellsCloud/Object/ChartPoint.pm view on Meta::CPAN
push @_array, $self->_deserialize($_subclass, $_element);
}
$self->{$_key} = \@_array;
} elsif (exists $hash->{$_json_attribute}) { #hash(model), primitive, datetime
$self->{$_key} = $self->_deserialize($_type, $hash->{$_json_attribute});
} else {
$log->debugf("Warning: %s (%s) does not exist in input hash\n", $_key, $_json_attribute);
}
}
return $self;
}
# deserialize non-array data
sub _deserialize {
my ($self, $type, $data) = @_;
$log->debugf("deserializing %s with %s",Dumper($data), $type);
if ($type eq 'DateTime') {
return DateTime->from_epoch(epoch => str2time($data));
} elsif ( grep( /^$type$/, ('int', 'double', 'string', 'boolean'))) {
return $data;
} else { # hash(model)
my $_instance = eval "AsposeCellsCloud::Object::$type->new()";
return $_instance->from_hash($data);
}
}
__PACKAGE__->class_documentation({description => 'Represents a single point in a series in a chart.',
class => 'ChartPoint',
required => [], # TODO
} );
__PACKAGE__->method_documentation({
'area' => {
datatype => 'Area',
base_name => 'Area',
description => 'Gets the area.',
format => '',
read_only => '',
},
'border' => {
datatype => 'Line',
base_name => 'Border',
description => 'Gets the border.',
format => '',
read_only => '',
},
'data_labels' => {
datatype => 'DataLabels',
base_name => 'DataLabels',
description => 'Returns a DataLabels object that represents the data label associated with the point.',
format => '',
read_only => '',
},
'explosion' => {
datatype => 'int',
base_name => 'Explosion',
description => 'The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.',
format => '',
read_only => '',
},
'marker' => {
datatype => 'Marker',
base_name => 'Marker',
description => 'Gets the marker.',
format => '',
read_only => '',
},
'shadow' => {
datatype => 'boolean',
base_name => 'Shadow',
description => 'True if the chartpoint has a shadow.',
format => '',
read_only => '',
},
'x_value' => {
datatype => 'string',
base_name => 'XValue',
description => 'Gets or sets the X value of the chart point.',
format => '',
read_only => '',
},
'y_value' => {
datatype => 'string',
base_name => 'YValue',
description => 'Gets or sets the Y value of the chart point.',
format => '',
read_only => '',
},
'is_in_secondary_plot' => {
datatype => 'boolean',
base_name => 'IsInSecondaryPlot',
description => 'Gets or sets a value indicates whether this data points is in the second pie or bar on a pie of pie or bar of pie chart.',
format => '',
read_only => '',
},
'link' => {
datatype => 'Link',
base_name => 'link',
description => '',
format => '',
read_only => '',
},
});
__PACKAGE__->swagger_types( {
'area' => 'Area',
'border' => 'Line',
'data_labels' => 'DataLabels',
'explosion' => 'int',
'marker' => 'Marker',
'shadow' => 'boolean',
'x_value' => 'string',
'y_value' => 'string',
'is_in_secondary_plot' => 'boolean',
'link' => 'Link'
} );
( run in 0.918 second using v1.01-cache-2.11-cpan-39bf76dae61 )