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

NameTypeAccessDescription
type``ReadGets the type.
title``ReadGets the title.
category_data``ReadGets the category data.
show_legend``ReadGets the show legend.
legend_position``ReadGets the legend position.
smooth``ReadGets the smooth.
n_series``ReadGets the n series.
NSeries``ReadPascalCase alias of n_series.
grouping``ReadGets the grouping.
bar_direction``ReadGets the bar direction.
gap_width``ReadGets the gap width.
overlap``ReadGets the overlap.
vary_colors``ReadGets the vary colors.
first_slice_angle``ReadGets the first slice angle.
is_of_pie``ReadGets the is of pie.
of_pie_type``ReadGets the of pie type.
second_pie_size``ReadGets the second pie size.
quartile_method``ReadGets the quartile method.
box_show_mean_line``ReadGets the box show mean line.
box_show_mean_marker``ReadGets the box show mean marker.
box_show_inner_points``ReadGets the box show inner points.
box_show_outlier_points``ReadGets the box show outlier points.
box_gap_width``ReadGets the box gap width.
is_3d``ReadGets the is 3d.
gap_depth``ReadGets the gap depth.
view_3d``ReadGets the view 3d.
View3D``ReadPascalCase alias of view_3d.
show_connector_lines``ReadGets the show connector lines.
has_subtotals``ReadGets the has subtotals.
sub_charts``ReadList of sub-chart descriptors for combo charts.
axes``ReadList of ChartAxis objects defining all axes for the chart.
scatter_style``ReadGets the scatter style.
wireframe``ReadWhether the surface chart uses wireframe display mode (<c:wireframe val=‘1’/>).
radar_style``ReadRadar chart style: ‘standard’, ‘marker’, or ‘filled’.
histogram_bin_count``ReadNumber of bins for count-based binning (int or None for auto/size-based).
histogram_bin_size``ReadBin width for size-based binning (float or None for auto/count-based).
histogram_interval_closed``ReadWhich side of each bin interval is closed: ‘r’ (right) or ’l’ (left).
histogram_overflow``ReadOverflow bin boundary value (float or None).
histogram_underflow``ReadUnderflow bin boundary value (float or None).
disp_blanks_as``ReadGets the disp blanks as.
stock_style``ReadGets the stock style.

Methods

SignatureDescription
__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

See Also