Chart
Overview
Chart is a class in Aspose.Cells FOSS for Python.
Represents a chart in a worksheet.
This class provides 4 methods for working with Chart objects in Python programs.
Available methods include: __init__, add_axis, add_series, copy.
All exported members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: NSeries, View3D, axes, bar_direction, box_gap_width, box_show_inner_points, and 35 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | `` | Read | Gets the type. |
title | `` | Read | Gets the title. |
category_data | `` | Read | Gets the category data. |
show_legend | `` | Read | Gets the show legend. |
legend_position | `` | Read | Gets the legend position. |
smooth | `` | Read | Gets the smooth. |
n_series | `` | Read | Gets the n series. |
NSeries | `` | Read | PascalCase alias of n_series. |
grouping | `` | Read | Gets the grouping. |
bar_direction | `` | Read | Gets the bar direction. |
gap_width | `` | Read | Gets the gap width. |
overlap | `` | Read | Gets the overlap. |
vary_colors | `` | Read | Gets the vary colors. |
first_slice_angle | `` | Read | Gets the first slice angle. |
is_of_pie | `` | Read | Gets the is of pie. |
of_pie_type | `` | Read | Gets the of pie type. |
second_pie_size | `` | Read | Gets the second pie size. |
quartile_method | `` | Read | Gets the quartile method. |
box_show_mean_line | `` | Read | Gets the box show mean line. |
box_show_mean_marker | `` | Read | Gets the box show mean marker. |
box_show_inner_points | `` | Read | Gets the box show inner points. |
box_show_outlier_points | `` | Read | Gets the box show outlier points. |
box_gap_width | `` | Read | Gets the box gap width. |
is_3d | `` | Read | Gets the is 3d. |
gap_depth | `` | Read | Gets the gap depth. |
view_3d | `` | Read | Gets the view 3d. |
View3D | `` | Read | PascalCase alias of view_3d. |
show_connector_lines | `` | Read | Gets the show connector lines. |
has_subtotals | `` | Read | Gets the has subtotals. |
sub_charts | `` | Read | List of sub-chart descriptors for combo charts. |
axes | `` | Read | List of ChartAxis objects defining all axes for the chart. |
scatter_style | `` | Read | Gets the scatter style. |
wireframe | `` | Read | Whether the surface chart uses wireframe display mode (<c:wireframe val=‘1’/>). |
radar_style | `` | Read | Radar chart style: ‘standard’, ‘marker’, or ‘filled’. |
histogram_bin_count | `` | Read | Number of bins for count-based binning (int or None for auto/size-based). |
histogram_bin_size | `` | Read | Bin width for size-based binning (float or None for auto/count-based). |
histogram_interval_closed | `` | Read | Which side of each bin interval is closed: ‘r’ (right) or ’l’ (left). |
histogram_overflow | `` | Read | Overflow bin boundary value (float or None). |
histogram_underflow | `` | Read | Underflow bin boundary value (float or None). |
disp_blanks_as | `` | Read | Gets the disp blanks as. |
stock_style | `` | Read | Gets the stock style. |
Methods
| Signature | Description |
|---|---|
__init__(chart_type, upper_left_row, upper_left_column, lower_right_row, lower_right_column) | |
add_series(values, category_data, name, chart_type, x_values) | Convenience method to add a series. |
add_axis(axis_type, axis_id) | Adds an axis to the chart and returns it. |
copy() | Creates and returns a duplicate of the chart |