Change a Series Font in Legend

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
kdn2009
Newbie
Newbie
Posts: 6
Joined: Thu Feb 08, 2007 12:00 am
Contact:

Change a Series Font in Legend

Post by kdn2009 » Wed Apr 22, 2009 3:57 pm

Hello,
We would like to call attention to a particular series that is displayed in the legend.
Is there a way to change an individual series font or highlight it? We are running v2.
I appreciate any suggestions.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Thu Apr 23, 2009 10:08 am

Hello kdn2009,
Is there a way to change an individual series font or highlight it? We are running v2.
With v2 of teeChartFor .Net is not possible change font an individual series of legend.

In version 3 of TeeChartFor .Net exist a property that allows change value of individual series text of legend but not series font. See Welcome !\New in Legend\Legend Items of demos, or next example.

Code: Select all

tChart1.Legend.Item[5].Text = "Hello";
Also, exist other solution that I believe that you will be more useful, there is draw custom legend. You can find an examplehere.

I hope that have served my help.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

kdn2009
Newbie
Newbie
Posts: 6
Joined: Thu Feb 08, 2007 12:00 am
Contact:

Legend text

Post by kdn2009 » Mon Jun 08, 2009 7:55 pm

Hello,
Is it possible to change the size of the series text in the legend? What about make it bold or in italics?
Thanks,
Kim

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Tue Jun 09, 2009 7:44 am

Hello Kim,


If you want change size text in the legend and style (Bold,Italic,Regular, strikeout, Underline) you can use next lines of code in your application:

Code: Select all

 tChart1.Legend.Font.Italic = true;
 tChart1.Legend.Font.Size = 15;
I hope that will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply