Enter a label on a series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
larsarve
Newbie
Newbie
Posts: 1
Joined: Fri Feb 02, 2007 12:00 am

Enter a label on a series

Post by larsarve » Wed Feb 14, 2007 11:30 am

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

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

Post by Edu » Thu Feb 15, 2007 9:12 am

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
Best Regards,
Edu

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

Post Reply