Pie Chart¶
A pie chart is one of the fundamental plot types.
XML specimens¶
Minimal working XML for a pie plot. Note this does not reference values in a spreadsheet.:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<c:chartSpace
xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<c:chart>
<c:plotArea>
<c:pieChart>
<c:ser>
<c:idx val="0"/>
<c:order val="0"/>
<c:tx>
<c:v>Sales</c:v>
</c:tx>
<c:cat>
<c:strLit>
<c:ptCount val="4"/>
<c:pt idx="0">
<c:v>1st Qtr</c:v>
</c:pt>
<c:pt idx="1">
<c:v>2nd Qtr</c:v>
</c:pt>
<c:pt idx="2">
<c:v>3rd Qtr</c:v>
</c:pt>
<c:pt idx="3">
<c:v>4th Qtr</c:v>
</c:pt>
</c:strLit>
</c:cat>
<c:val>
<c:numLit>
<c:ptCount val="4"/>
<c:pt idx="0">
<c:v>8.2</c:v>
</c:pt>
<c:pt idx="1">
<c:v>3.2</c:v>
</c:pt>
<c:pt idx="2">
<c:v>1.4</c:v>
</c:pt>
<c:pt idx="3">
<c:v>1.2</c:v>
</c:pt>
</c:numLit>
</c:val>
</c:ser>
</c:pieChart>
</c:plotArea>
</c:chart>
</c:chartSpace>