Weird double coordinates when Exporting to XML
Posted: Thu Mar 16, 2006 2:14 am
When I try to export data from TeeChart to XML, I get a weird double output of the coordinates. The X and Y attributes appear twice in each point element, like so:
<chart>
<series title="line" type="Line">
<points count="97">
<point X="38777.25" Y="138" X="38777.25" Y="138"/>
<point X="38777.2604166667" Y="135" X="38777.2604166667" Y="135"/>
<point X="38777.2708332176" Y="136" X="38777.2708332176" Y="136"/>
[snipped...]
</points>
</series>
<series title="Max. limit" type="Fast Line">
<points count="0">
</points>
</series>
</chart>
This doesn't happen with the other formats (I tried Text and Html). Any ideas why? Anything I can do about it? The code I'm using is:
tChart.Export.Data.XML.Save(@"C:\Scratch\testout.xml");
<chart>
<series title="line" type="Line">
<points count="97">
<point X="38777.25" Y="138" X="38777.25" Y="138"/>
<point X="38777.2604166667" Y="135" X="38777.2604166667" Y="135"/>
<point X="38777.2708332176" Y="136" X="38777.2708332176" Y="136"/>
[snipped...]
</points>
</series>
<series title="Max. limit" type="Fast Line">
<points count="0">
</points>
</series>
</chart>
This doesn't happen with the other formats (I tried Text and Html). Any ideas why? Anything I can do about it? The code I'm using is:
tChart.Export.Data.XML.Save(@"C:\Scratch\testout.xml");