Page 1 of 1

load datetime line data

Posted: Wed Aug 15, 2012 5:56 pm
by 16561529
I have been struggling with inputting line data. An example of XML, text, URL input for lines, especially with dates on the X axis, would be very much appreciated. Ultimately I am looking to output line series data from TChart VCL that could be read by TChart Javascript. XML output of line series data from TChart VCL does not seem to be readable by XML input in TChart Javascript.
Tchart VCL XML output:
series title="Total" type="Line" color="#FF0000">
<points count="76">
<point text="03/03/03" X="37683" Y="30"/>
<point text="03/10/03" X="37690" Y="32"/>
<point text="03/17/03" X="37697" Y="36"/>
<point text="03/24/03" X="37704" Y="38"/>
...
</points>
</series

Re: load datetime line data

Posted: Fri Aug 17, 2012 11:29 am
by yeray
Hi Bill,

It would probably be simpler to export your VCL Chart directly to Javascript (TeeSaveToJavascriptFile() function from the TeeJavascript unit). Have you tried it?

Re: load datetime line data

Posted: Fri Aug 17, 2012 2:40 pm
by 16561529
I will definitely try this. I need to upgrade my Delphi 2006 installation and programs from tchart 8.06 to 2012 first. But I will still need to know the best way (does not need to be XML) to read lineseries data with date on the x axis into tchart javascript.