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

# ChartData

## Overview

`ChartData` is a class in Aspose.Slides FOSS for Python.
Inherits from: `IChartData`.

Represents data used for chart plotting.

This class provides 2 methods for working with ChartData objects in Python programs.
Available methods include: `get_range`, `set_range`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `categories`, `chart_data_workbook`, `data_source_type`, `series`, `series_groups`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `chart_data_workbook` | `IChartDataWorkbook` | Read | Gets the chart data workbook. |
| `series` | `IChartSeriesCollection` | Read | Gets the series. |
| `categories` | `IChartCategoryCollection` | Read | Gets the categories. |
| `series_groups` | `IChartSeriesGroupCollection` | Read | Gets the series groups. |
| `data_source_type` | `ChartDataSourceType` | Read | Gets the data source type. |

## Methods

| Signature | Description |
|-----------|-------------|
| `get_range()` → `str` | Get the data range string. |
| `set_range(formula: str)` | Set the data range string. |

## See Also

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