Page 1 of 1

Enter a label on a series

Posted: Wed Feb 14, 2007 11:30 am
by 9644106
Hi,

this is a real newbie question, but how can I enter a label on a series? What I want is a fastline-series, and at the end of the series I want to place a label (same style as marks), I tryed marks, but dident find out how to limit them to only the last point in the series.


y.s.
lars arve

Posted: Thu Feb 15, 2007 9:12 am
by 9348258
Hi,

There are two solutions for your question. One of them is using a GetSeriesMark event, whose is called every time that a mark is painted. You can do something similiar to below code:

Code: Select all

private void fastLine1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
        {
            if (e.ValueIndex != series.Count-1)
            {
                e.MarkText = "";
            }            
        }
The other way is using an Annotation Tool, you can see how to use it in the http://www.teechart.net/support/viewtop ... annotation post