End-Date Value of a Gantt

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Woehr.Mi
Newbie
Newbie
Posts: 38
Joined: Mon Jun 23, 2008 12:00 am

End-Date Value of a Gantt

Post by Woehr.Mi » Thu Jan 15, 2009 8:35 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 15, 2009 9:06 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Woehr.Mi
Newbie
Newbie
Posts: 38
Joined: Mon Jun 23, 2008 12:00 am

Post by Woehr.Mi » Thu Jan 15, 2009 9:48 am

Thanks Narcís,

now It works.

Best regards.

Post Reply