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

# Trendline

## Overview

`Trendline` is a class in Aspose.Slides FOSS for Python.
Inherits from: `ITrendline`.

Represents a trend line of a chart series.

This class provides 1 method for working with Trendline objects in Python programs.
Available methods include: `add_text_frame_for_overriding`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_i_chart_component`, `as_i_presentation_component`, `as_i_slide_component`, `backward`, `chart`, `display_equation`, and 11 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `trendline_name` | `str` | Read/Write | Gets or sets the trendline name. |
| `trendline_type` | `TrendlineType` | Read/Write | Gets or sets the trendline type. |
| `backward` | `float` | Read/Write | Gets or sets the backward. |
| `forward` | `float` | Read/Write | Gets or sets the forward. |
| `intercept` | `float` | Read/Write | Gets or sets the intercept. |
| `display_equation` | `bool` | Read/Write | Gets or sets the display equation. |
| `order` | `int` | Read/Write | Gets or sets the order. |
| `period` | `int` | Read/Write | Gets or sets the period. |
| `display_r_squared_value` | `bool` | Read/Write | Gets or sets the display r squared value. |
| `text_frame_for_overriding` | `ITextFrame` | Read | Can contain a rich formatted text. |
| `text_format` | `IChartTextFormat` | Read | Gets the text format. |
| `as_i_chart_component` | `IChartComponent` | Read | Gets the as i chart component. |
| `chart` | `IChart` | Read | Gets the chart. |
| `as_i_slide_component` | `ISlideComponent` | Read | Gets the as i slide component. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `as_i_presentation_component` | `IPresentationComponent` | Read | Gets the as i presentation component. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `add_text_frame_for_overriding(text)` → `ITextFrame` |  |

## See Also

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