---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/chart
---

# Chart

## Overview

`Chart` is a class in Aspose.Slides FOSS for Python.
Inherits from: `IChart`, `GraphicalObject`.

Represents a chart on a slide.

This class declares 3 methods for Chart objects in Python programs.
Available methods include: `__init__`, `__setattr__`, `validate_chart_layout`.
Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `alternative_text`, `alternative_text_title`, `as_i_chart_component`, `as_i_presentation_component`, `as_i_slide_component`, `axes`, and 47 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `fill_format` | - | Read | Gets the fill format. |
| `line_format` | - | Read | Gets the line format. |
| `effect_format` | - | Read | Gets the effect format. |
| `three_d_format` | - | Read | Gets the three d format. |
| `chart_data` | `IChartData` | Read | Gets the chart data. |
| `type` | `ChartType` | Read/Write | Gets or sets the type. |
| `has_title` | `bool` | Read/Write | Gets or sets the has title. |
| `chart_title` | `'IChartTitle'` | Read | Gets the chart title. |
| `has_legend` | `bool` | Read/Write | Gets or sets the has legend. |
| `legend` | `'ILegend'` | Read | Gets the legend. |
| `has_data_table` | `bool` | Read/Write | Gets or sets the has data table. |
| `chart_data_table` | `IDataTable` | Read | Gets the chart data table. |
| `plot_area` | `'IChartPlotArea'` | Read | Gets the plot area. |
| `axes` | `'IAxesManager'` | Read | Gets the axes. |
| `display_blanks_as` | `'DisplayBlanksAsType'` | Read/Write | Gets or sets the display blanks as. |
| `plot_visible_cells_only` | `bool` | Read/Write | Gets or sets the plot visible cells only. |
| `show_data_labels_over_maximum` | `bool` | Read/Write | Gets or sets the show data labels over maximum. |
| `has_rounded_corners` | `bool` | Read/Write | Gets or sets the has rounded corners. |
| `style` | `'StyleType'` | Read/Write | Gets or sets the style. |
| `text_format` | `'IChartTextFormat'` | Read | Gets the text format. |
| `rotation_3d` | `'IRotation3D'` | Read | Gets the rotation 3d. |
| `back_wall` | `'IChartWall'` | Read | Gets the back wall. |
| `side_wall` | `'IChartWall'` | Read | Gets the side wall. |
| `floor` | `'IChartWall'` | Read | Gets the floor. |
| `chart` | - | Read | Gets the chart. |
| `graphical_object_lock` | `IGraphicalObjectLock` | Read | Returns shape's locks. |
| `is_text_holder` | `bool` | Read | Determines whether the shape is TextHolder. |
| `placeholder` | `IPlaceholder` | Read | Returns the placeholder for a shape. |
| `custom_data` | `ICustomData` | Read | Returns the shape's custom data. |
| `raw_frame` | `IShapeFrame` | Read/Write | Returns or sets the raw shape frame's properties. |
| `frame` | `IShapeFrame` | Read/Write | Returns or sets the shape frame's properties. |
| `hidden` | `bool` | Read/Write | Determines whether the shape is hidden. |
| `z_order_position` | `int` | Read | Returns the position of a shape in the z-order. |
| `connection_site_count` | `int` | Read | Returns the number of connection sites on the shape. |
| `rotation` | `float` | Read/Write | Returns or sets the number of degrees the specified shape is rotated around the z-axis. |
| `x` | `float` | Read/Write | Gets or sets the x-coordinate of the shape's upper-left corner, measured in points. |
| `y` | `float` | Read/Write | Gets or sets the y-coordinate of the shape's upper-left corner, measured in points. |
| `width` | `float` | Read/Write | Gets or sets the width of the shape, measured in points. |
| `height` | `float` | Read/Write | Gets or sets the height of the shape, measured in points. |
| `alternative_text` | `str` | Read/Write | Returns or sets the alternative text associated with a shape. |
| `alternative_text_title` | `str` | Read/Write | Returns or sets the title of alternative text associated with a shape. |
| `name` | `str` | Read/Write | Returns or sets the name of a shape. |
| `is_decorative` | `bool` | Read/Write | Gets or sets 'Mark as decorative' option Reed/write . |
| `unique_id` | `int` | Read | Returns an internal, presentation-scoped identifier intended for use by add-ins or other code. |
| `office_interop_shape_id` | `int` | Read | Returns a slide-scoped unique identifier that remains constant for the lifetime of the shape and lets PowerPoint or interop code reliably reference the shape from anywhere in the document. |
| `is_grouped` | `bool` | Read | Determines whether the shape is grouped. |
| `as_i_slide_component` | `ISlideComponent` | Read | Allows to get base ISlideComponent interface. |
| `slide` | `IBaseSlide` | Read | Returns the base slide. |
| `as_i_presentation_component` | `IPresentationComponent` | Read | Allows to get base IPresentationComponent interface. |
| `presentation` | `IPresentation` | Read | Returns the presentation. |
| `hyperlink_click` | `IHyperlink` | Read/Write | Returns or sets the hyperlink followed on a mouse click. |
| `hyperlink_mouse_over` | `IHyperlink` | Read/Write | Returns or sets the hyperlink followed on a mouse over. |
| `as_i_chart_component` | `IChartComponent` | Read | Returns IChartComponent interface. |

## Methods

| Signature | Description |
|-----------|-------------|
| `validate_chart_layout()` | Validates the chart's layout configuration |
| `__init__()` | Initialize an empty shape. |
| `__setattr__(name: str, value)` | Calls __setattr__(name, value) on this Chart instance. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)