Chart Drawings
Within the drawing*.xml file there is a single drawing file that contains the <userShapes>
element. This element is the parent element for all the drawing elements within a single chart. Its child specifies the anchoring properties of the drawing elements. It is within this element that the main specifications for the drawing elements are located. For example in the above screenshot with a simple shape located in the chart, the XML for this would look like:
<c:userShapes> <cdr:relSizeAnchor> <cdr:from> <cdr:x>0.125</cdr:x> <cdr:y>0.13194</cdr:y> </cdr:from> <cdr:to> <cdr:x>0.36042</cdr:x> <cdr:y>0.53472</cdr:y> </cdr:to> … </cdr:sp> </cdr:relSizeAnchor> </c:userShapes>
In the <ChartDrawingML>
code above, there is a single drawing specified almost exactly as it would within the regular DrawingML framework. However, the <ChartDrawingML>
wrapper that is used allows for the specifying of chart specific properties in addition to the normal drawing properties. The most interesting of these are the two anchoring types that define the placement behavior of a drawing within a chart.