Page 1 of 1

Legend Text

Posted: Tue Oct 03, 2006 4:20 pm
by 9639571
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.

Posted: Wed Oct 04, 2006 6:37 am
by Marjan
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";
...