2.24.3.59 CT_Legend

Target namespace: http://schemas.microsoft.com/office/drawing/2014/chartex

Referenced by: CT_Chart

A complex type<440> that specifies a chart legend.

Child Elements:

spPr: A CT_ShapeProperties ([ISO/IEC29500-1:2016] section A.4.1) element<441> that specifies OfficeArt shape properties for the legend.

txPr: A CT_TextBody element ([ISO/IEC29500-1:2016] section A.4.1) element<442> that specifies OfficeArt text properties for the legend as a single paragraph with no text runs. Any runs in the first paragraph and paragraphs in addition to the first are ignored.

extLst: A CT_ExtensionList element<443> that specifies an extensibility container.

Attributes:

pos: An ST_SidePos attribute<444> that specifies the side position of the legend.

align: An ST_PosAlign attribute<445> that specifies the legend alignment along the side position.

overlay: A boolean ([XMLSCHEMA2/2] section 3.2.2) attribute<446> that specifies whether to overlay the legend on the chart.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xsd:complexType name="CT_Legend">
   <xsd:sequence>
     <xsd:element name="spPr" type="a:CT_ShapeProperties" minOccurs="0" maxOccurs="1"/>
     <xsd:element name="txPr" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
     <xsd:element name="extLst" type="CT_ExtensionList" minOccurs="0" maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="pos" type="ST_SidePos" use="optional" default="r"/>
   <xsd:attribute name="align" type="ST_PosAlign" use="optional" default="ctr"/>
   <xsd:attribute name="overlay" type="xsd:boolean" use="optional" default="0"/>
 </xsd:complexType>

See section 5.22 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).