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

NameTypeAccessDescription
positionLegendPositionTypeRead/WriteSpecifies the position of the legend on a chart.
overlayboolRead/WriteDetermines whether other chart elements shall be allowed to overlap legend.
formatIFormatReadReturns the format of a legend.
text_formatIChartTextFormatReadText format.
entriesILegendEntryCollectionReadGets legend entries.
xfloatRead/WriteX coordinate as a fraction of the chart width.
yfloatRead/WriteY coordinate as a fraction of the chart height.
widthfloatRead/WriteWidth as a fraction of the chart width.
heightfloatRead/WriteHeight as a fraction of the chart height.
rightfloatReadRight boundary.
bottomfloatReadBottom boundary.
chart``ReadReturns the parent chart.
as_i_chart_componentIChartComponentReadAllows to get base IChartComponent interface.
as_i_slide_componentISlideComponentReadGets the as i slide component.
slideIBaseSlideReadGets the slide.
as_i_presentation_componentIPresentationComponentReadGets the as i presentation component.
presentationIPresentationReadGets the presentation.
actual_xfloatReadSpecifies actual x location (left) of the chart element relative to the left top corner of the chart.
actual_yfloatReadSpecifies actual top of the chart element relative to the left top corner of the chart.
actual_widthfloatReadSpecifies actual width of the chart element.
actual_heightfloatReadSpecifies actual height of the chart element.

See Also