Page 1 of 1

End-Date Value of a Gantt

Posted: Thu Jan 15, 2009 8:35 am
by 10549438
Hello,

I'm using the Webchart (3.5.3274.30663) with 7 gantt-Series.

To add values to the gantt-Series I use the following code in a loop:

Code: Select all

condGanttBar[i].Add(startTime, endTime, LeftAxisValue, ganttColor[0]);
With the SeriesHotspot-Tool I show some detailed information on a MouseOver Event (The Start- and the End-Time of the Gantt for example).

Code: Select all

    private void hotspotTool_GetHTMLMap_Mark(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
    { 
      e.PointPolygon.Title := ...
     }

I found the Values for StartTime of every gantt in "e.Series.XValues.Value[e.PointPolygon.ValueIndex]".
But where can I find the EndTime of my Gantt-Series to display it using the SeriesHotSpot-Tool.

Best regards.
Michael

Posted: Thu Jan 15, 2009 9:06 am
by narcis
Hi Michael,

You can retrieve Gantt series values like this:

Code: Select all

			gantt1.StartValues[e.PointPolygon.ValueIndex]
			gantt1.EndValues[e.PointPolygon.ValueIndex]
			gantt1.YValues[e.PointPolygon.ValueIndex]
Hope this helps!

Posted: Thu Jan 15, 2009 9:48 am
by 10549438
Thanks NarcĂ­s,

now It works.

Best regards.