Legend
Overview
Legend is a class in Aspose.Slides FOSS for Python.
Inherits from: ILegend.
Represents chart’s legend properties.
Properties: actual_height, actual_width, actual_x, actual_y, as_i_chart_component, as_i_presentation_component, and 15 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
position | LegendPositionType | Read/Write | Specifies the position of the legend on a chart. |
overlay | bool | Read/Write | Determines whether other chart elements shall be allowed to overlap legend. |
format | IFormat | Read | Returns the format of a legend. |
text_format | IChartTextFormat | Read | Text format. |
entries | ILegendEntryCollection | Read | Gets legend entries. |
x | float | Read/Write | X coordinate as a fraction of the chart width. |
y | float | Read/Write | Y coordinate as a fraction of the chart height. |
width | float | Read/Write | Width as a fraction of the chart width. |
height | float | Read/Write | Height as a fraction of the chart height. |
right | float | Read | Right boundary. |
bottom | float | Read | Bottom boundary. |
chart | `` | Read | Returns the parent chart. |
as_i_chart_component | IChartComponent | Read | Allows to get base IChartComponent interface. |
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. |
actual_x | float | Read | Specifies actual x location (left) of the chart element relative to the left top corner of the chart. |
actual_y | float | Read | Specifies actual top of the chart element relative to the left top corner of the chart. |
actual_width | float | Read | Specifies actual width of the chart element. |
actual_height | float | Read | Specifies actual height of the chart element. |