AsposeCellsCloud-CellsApi
view release on metacpan or search on metacpan
lib/AsposeCellsCloud/Object/Chart.pm view on Meta::CPAN
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 => 'Encapsulates the object that represents a single Excel chart.',
class => 'Chart',
required => [], # TODO
} );
__PACKAGE__->method_documentation({
'auto_scaling' => {
datatype => 'boolean',
base_name => 'AutoScaling',
description => 'True if Microsoft Excel scales a 3-D chart so that it`s closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True.',
format => '',
read_only => '',
},
'back_wall' => {
datatype => 'Walls',
base_name => 'BackWall',
description => 'Returns a object that represents the back wall of a 3-D chart.',
format => '',
read_only => '',
},
'category_axis' => {
datatype => 'Axis',
base_name => 'CategoryAxis',
description => 'Gets the chart`s X axis.',
format => '',
read_only => '',
},
'chart_area' => {
datatype => 'ChartArea',
base_name => 'ChartArea',
description => 'Gets the chart area in the worksheet.',
format => '',
read_only => '',
},
'chart_data_table' => {
datatype => 'ChartDataTable',
base_name => 'ChartDataTable',
description => 'Represents the chart data table.',
format => '',
read_only => '',
},
'chart_object' => {
datatype => 'LinkElement',
base_name => 'ChartObject',
description => 'Represents the chartShape;',
format => '',
read_only => '',
},
'depth_percent' => {
datatype => 'int',
base_name => 'DepthPercent',
description => 'Represents the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).',
format => '',
read_only => '',
},
'elevation' => {
datatype => 'int',
base_name => 'Elevation',
description => 'Represents the elevation of the 3-D chart view, in degrees.',
format => '',
read_only => '',
},
'first_slice_angle' => {
datatype => 'int',
base_name => 'FirstSliceAngle',
description => 'Gets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical). Applies only to pie, 3-D pie, and doughnut charts, 0 to 360.',
format => '',
read_only => '',
},
'floor' => {
datatype => 'Floor',
base_name => 'Floor',
description => 'Returns a object that represents the walls of a 3-D chart.',
format => '',
read_only => '',
},
'gap_depth' => {
datatype => 'int',
base_name => 'GapDepth',
description => 'Gets or sets the distance between the data series in a 3-D chart, as a percentage of the marker width. The value of this property must be between 0 and 500.',
format => '',
read_only => '',
},
'gap_width' => {
datatype => 'int',
base_name => 'GapWidth',
description => 'Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500.',
format => '',
read_only => '',
},
'height_percent' => {
datatype => 'int',
base_name => 'HeightPercent',
description => 'Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).',
format => '',
read_only => '',
},
'hide_pivot_field_buttons' => {
datatype => 'boolean',
base_name => 'HidePivotFieldButtons',
description => 'Indicates whether hide the pivot chart field buttons only when the chart is PivotChart.',
format => '',
read_only => '',
},
'is3_d' => {
datatype => 'boolean',
base_name => 'Is3D',
description => 'Indicates whether the chart is a 3d chart.',
format => '',
read_only => '',
},
'is_rectangular_cornered' => {
datatype => 'boolean',
base_name => 'IsRectangularCornered',
description => 'Gets or sets a value indicating whether the chart area is rectangular cornered. Default is true.',
format => '',
read_only => '',
},
'legend' => {
datatype => 'Legend',
base_name => 'Legend',
description => 'Gets the chart legend.',
format => '',
read_only => '',
},
'name' => {
datatype => 'string',
base_name => 'Name',
description => 'Represents chart name.',
format => '',
read_only => '',
},
'n_series' => {
datatype => 'SeriesItems',
base_name => 'NSeries',
description => 'Gets a collection representing the data series in the chart.',
format => '',
read_only => '',
},
'page_setup' => {
datatype => 'LinkElement',
base_name => 'PageSetup',
description => 'Represents the page setup description in this chart.',
format => '',
read_only => '',
},
'perspective' => {
datatype => 'int',
base_name => 'Perspective',
description => 'Returns or sets the perspective for the 3-D chart view. Must be between 0 and 100. This property is ignored if the RightAngleAxes property is True.',
format => '',
read_only => '',
},
'pivot_source' => {
lib/AsposeCellsCloud/Object/Chart.pm view on Meta::CPAN
read_only => '',
},
'style' => {
datatype => 'int',
base_name => 'Style',
description => 'Gets and sets the builtin style.',
format => '',
read_only => '',
},
'title' => {
datatype => 'LinkElement',
base_name => 'Title',
description => 'Represents chart title.',
format => '',
read_only => '',
},
'type' => {
datatype => 'string',
base_name => 'Type',
description => 'Represents chart type.',
format => '',
read_only => '',
},
'value_axis' => {
datatype => 'Axis',
base_name => 'ValueAxis',
description => 'Gets the chart`s Y axis.',
format => '',
read_only => '',
},
'walls' => {
datatype => 'LinkElement',
base_name => 'Walls',
description => 'Returns a object that represents the walls of a 3-D chart.',
format => '',
read_only => '',
},
'walls_and_gridlines2_d' => {
datatype => 'boolean',
base_name => 'WallsAndGridlines2D',
description => 'True if gridlines are drawn two-dimensionally on a 3-D chart.',
format => '',
read_only => '',
},
'link' => {
datatype => 'Link',
base_name => 'link',
description => '',
format => '',
read_only => '',
},
});
__PACKAGE__->swagger_types( {
'auto_scaling' => 'boolean',
'back_wall' => 'Walls',
'category_axis' => 'Axis',
'chart_area' => 'ChartArea',
'chart_data_table' => 'ChartDataTable',
'chart_object' => 'LinkElement',
'depth_percent' => 'int',
'elevation' => 'int',
'first_slice_angle' => 'int',
'floor' => 'Floor',
'gap_depth' => 'int',
'gap_width' => 'int',
'height_percent' => 'int',
'hide_pivot_field_buttons' => 'boolean',
'is3_d' => 'boolean',
'is_rectangular_cornered' => 'boolean',
'legend' => 'Legend',
'name' => 'string',
'n_series' => 'SeriesItems',
'page_setup' => 'LinkElement',
'perspective' => 'int',
'pivot_source' => 'string',
'placement' => 'string',
'plot_area' => 'PlotArea',
'plot_empty_cells_type' => 'string',
'plot_visible_cells' => 'boolean',
'print_size' => 'string',
'right_angle_axes' => 'boolean',
'rotation_angle' => 'int',
'second_category_axis' => 'LinkElement',
'second_value_axis' => 'LinkElement',
'series_axis' => 'LinkElement',
'shapes' => 'LinkElement',
'show_data_table' => 'boolean',
'show_legend' => 'boolean',
'side_wall' => 'LinkElement',
'size_with_window' => 'boolean',
'style' => 'int',
'title' => 'LinkElement',
'type' => 'string',
'value_axis' => 'Axis',
'walls' => 'LinkElement',
'walls_and_gridlines2_d' => 'boolean',
'link' => 'Link'
} );
__PACKAGE__->attribute_map( {
'auto_scaling' => 'AutoScaling',
'back_wall' => 'BackWall',
'category_axis' => 'CategoryAxis',
'chart_area' => 'ChartArea',
'chart_data_table' => 'ChartDataTable',
'chart_object' => 'ChartObject',
'depth_percent' => 'DepthPercent',
'elevation' => 'Elevation',
'first_slice_angle' => 'FirstSliceAngle',
'floor' => 'Floor',
'gap_depth' => 'GapDepth',
'gap_width' => 'GapWidth',
'height_percent' => 'HeightPercent',
'hide_pivot_field_buttons' => 'HidePivotFieldButtons',
'is3_d' => 'Is3D',
'is_rectangular_cornered' => 'IsRectangularCornered',
'legend' => 'Legend',
'name' => 'Name',
'n_series' => 'NSeries',
'page_setup' => 'PageSetup',
'perspective' => 'Perspective',
'pivot_source' => 'PivotSource',
'placement' => 'Placement',
'plot_area' => 'PlotArea',
'plot_empty_cells_type' => 'PlotEmptyCellsType',
'plot_visible_cells' => 'PlotVisibleCells',
'print_size' => 'PrintSize',
'right_angle_axes' => 'RightAngleAxes',
'rotation_angle' => 'RotationAngle',
'second_category_axis' => 'SecondCategoryAxis',
'second_value_axis' => 'SecondValueAxis',
'series_axis' => 'SeriesAxis',
'shapes' => 'Shapes',
'show_data_table' => 'ShowDataTable',
'show_legend' => 'ShowLegend',
'side_wall' => 'SideWall',
'size_with_window' => 'SizeWithWindow',
'style' => 'Style',
'title' => 'Title',
'type' => 'Type',
'value_axis' => 'ValueAxis',
'walls' => 'Walls',
'walls_and_gridlines2_d' => 'WallsAndGridlines2D',
'link' => 'link'
} );
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
1;
( run in 0.468 second using v1.01-cache-2.11-cpan-39bf76dae61 )