I am currently working on a very urgent project that dictates the use of a Gantt graph to display flights within a date/time period.
My problem is that TeeChart seems to ignore the Y="xx" parameter for same line display in the XML <point> line when importing the XML.
I tried adding manually a few entries to a gantt series (through the commander) and the Y parameter for same line worked fine.
Then, again from the commander, I exported the data as XML with all the options, created a new chart and re-imported the previously exported
XML file. As a result the Y parameter was ignored and the data imported wrongly.
This is the exported XML :
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<chart>
<series title="Series0" type="Gantt" color="#829BFE">
<points count="5">
<point index="0" text="SXOAB" Y="1" Start="40304,424" End="40304,465" NextTask="-1"/>
<point index="1" text="SXOAB" Y="1" Start="40304,479" End="40304,507" NextTask="-1"/>
<point index="2" text="SXOAA" Y="2" Start="40304,431" End="40304,458" NextTask="-1"/>
<point index="3" text="SXOAA" Y="2" Start="40304,479" End="40304,5" NextTask="-1"/>
<point index="4" text="SXOAA" Y="2" Start="40304,993" End="40305,014" NextTask="-1"/>
</points>
</series>
</chart>
I tried moving the Y parameter between the start and end lines as shown in the manual data entry table but no good.
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<chart>
<series title="Series0" type="Gantt" color="#829BFE">
<points count="5">
<point index="0" text="SXOAB" Start="40304,424" Y="1" End="40304,465" NextTask="-1"/>
<point index="1" text="SXOAB" Start="40304,479" Y="1" End="40304,507" NextTask="-1"/>
<point index="2" text="SXOAA" Start="40304,431" Y="2" End="40304,458" NextTask="-1"/>
<point index="3" text="SXOAA" Start="40304,479" Y="2" End="40304,5" NextTask="-1"/>
<point index="4" text="SXOAA" Start="40304,993" Y="2" End="40305,014" NextTask="-1"/>
</points>
</series>
</chart>
which is not the result I want.
I tried this with both the TeeChart 7.0.1.4 version and the evaluation version 8.0.0.6, both producing same wrong results. Both versions
seem to IGNORE the Y parameter.
Please, please, I need your urgent help as this project is very important and urgent.
Thank you very much for your cooperation.
Regards
George