INDIVIDUAL Marks in Gannt-chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
peter-sms
Newbie
Newbie
Posts: 2
Joined: Thu Feb 01, 2007 12:00 am
Contact:

INDIVIDUAL Marks in Gannt-chart

Post by peter-sms » Wed Jun 27, 2007 8:15 pm

I am using TeeChart 2.9 with VS-2005

I am using a gantt-chart-series.

I want show for every Task a DIFFERNT mark ( or tooltip)?

How can this be done ?

Now I can show marks e.g. Label or Value or similiar )
But I want show an individuall Text for each task.
How iis this possible ?

Thanks in advance
Peter

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Thu Jun 28, 2007 7:28 am

Hi Peter

You can to use the "GetSeriesMark" event of the Gantt Series, to change the text of the mark. You should to use the parameter e.MarkText to change the text, and parameter e.ValueIndex to know which mark is called by the event. You can do something similar as below code:

Code: Select all

   private void gantt1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
        {
            e.MarkText = "Mark number: "+e.ValueIndex.ToString();
        }
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply