---
Product: Aspose.Slides
Platform: python
Page Type: docs
Canonical URL: https://docs.aspose.org/slides/python/developer-guide/working-with-charts
---

# Working with Charts -- Aspose.Slides FOSS for Python

Learn how to work with working with charts using Aspose.Slides FOSS for Python. Covers Chart, ChartSeries, ChartSeriesCollection.

Aspose.Slides FOSS for Python provides classes for working with working with charts.

---

## Overview

The key classes involved are:

- **`Chart`**
- **`ChartSeries`**
- **`ChartSeriesCollection`**
- **`ChartSeriesGroup`**
- **`ChartSeriesGroupCollection`**

---

## Getting Started

Install Aspose.Slides FOSS for Python:

```bash
pip install aspose-slides-foss
```

### Basic Usage

```python
import aspose.slides_foss as slides
from aspose.slides_foss.charts import ChartType
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]
    chart = slide.shapes.add_chart(ChartType.CLUSTERED_COLUMN, 100, 100, 500, 400)

    # add_chart() seeds the chart with sample series/category data
    series = chart.chart_data.series[0]
    print(f"Series: {series.name.as_literal_string}, {len(series.data_points)} point(s)")

    prs.save("chart.pptx", SaveFormat.PPTX)
```

---

## Tips and Best Practices

- Always dispose of document objects after use
- Handle file I/O exceptions when reading or writing files
- Check the [API reference](https://reference.aspose.org/slides/python/) for the latest signatures

---

## API Reference Summary

| Class | Description |
|-------|-------------|
| `Chart` | See reference docs |
| `ChartSeries` | See reference docs |
| `ChartSeriesCollection` | See reference docs |
| `ChartSeriesGroup` | See reference docs |
| `ChartSeriesGroupCollection` | See reference docs |

For full details, see the [API Reference](https://reference.aspose.org/slides/python/).

## See Also

- [Aspose.Slides for Python — Enterprise Documentation](https://docs.aspose.com/slides/python-net/)