Page 1 of 1

INDIVIDUAL Marks in Gannt-chart

Posted: Wed Jun 27, 2007 8:15 pm
by 9644075
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

Posted: Thu Jun 28, 2007 7:28 am
by 9348258
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();
        }