Legend Text

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
phil1995
Newbie
Newbie
Posts: 31
Joined: Fri Dec 16, 2005 12:00 am
Location: Hattiesburg, Ms.
Contact:

Legend Text

Post by phil1995 » Tue Oct 03, 2006 4:20 pm

Can someone tell me how to change the text in a legend? I am looking to pull the series name from a database. Currently the legend just says HORIZBAR1, HORIZBAR2

Any help would be greatly appreciated.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Oct 04, 2006 6:37 am

Hi.

Several ways to do it. If you're only displaying/using series title in legend text, then the easiest solution is to change series Title property. Something like this:

Code: Select all

tChart1.Series[0].Title = "Series1Title";
tChart1.Series[1].Title = "Series2Title";
...
Marjan Slatinek,
http://www.steema.com

Post Reply