The chart data can be provided to the charting service using a XML stream or DOM object and must conform to the input schema (XSD file). Refer to the HTML version of the input schema for documentation on the individual element types and attributes. Here is an example of line chart data in XML format:
<?xml version="1.0" encoding="utf-8" ?>
<chart width="300" height="250" minWidth="0" minHeight="0">
<legend show="true" alignment="top"/>
<chartTitle label="Line Chart"/>
<plotArea type="line">
<axes>
<axis id="x" title="independent axis">
<categories>
<category id="c1" label="A"/>
<category id="c2" label="B"/>
<category id="c3" label="C"/>
<category id="c4" label="D"/>
<category id="c5" label="E"/>
</categories>
</axis>
<axis id="y" title="primary dependent axis">
</axis>
</axes>
<datasets>
<dataset label="Dataset 1">
<point>
<coord axis="x" value="c1"/>
<coord axis="y" value="0.1"/>
</point>
<point>
<coord axis="x" value="c2"/>
<coord axis="y" value="2.0"/>
</point>
<point>
<coord axis="x" value="c3"/>
<coord axis="y" value="3.0"/>
</point>
<point>
<coord axis="x" value="c4"/>
<coord axis="y" value="4.0"/>
</point>
<point>
<coord axis="x" value="c5"/>
<coord axis="y" value="5.0"/>
</point>
</dataset>
</datasets>
</plotArea>
</chart>
The chart element attributes specify the type of chart being described in the XML. The structure of the schema models the basic components of a chart. You can reference the input schema to drill down into the different elements to determine which sub-elements or attributes can be specified when defining your chart.
Related concepts
Charting overview