Customize Marks Tip

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sky Zapper
Newbie
Newbie
Posts: 5
Joined: Fri Jul 02, 2004 4:00 am

Customize Marks Tip

Post by Sky Zapper » Fri Apr 20, 2007 5:52 am

In a line graph, mark tips displays X and Y values. I want to change the tips to a different value, say for e.g. I want to display the line title instead.

How can I do that?

Thanks in Advance.

Sky

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

Post by Edu » Fri Apr 20, 2007 9:55 am

Hi Sky

You can use the "GetText" markTips event, as below code:

Code: Select all

private void marksTip1_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
        {
            e.Text = line1.Title;
        }
Best Regards,
Edu

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

Post Reply