Legend symbol

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ssundoro
Newbie
Newbie
Posts: 10
Joined: Wed Jun 22, 2005 4:00 am
Contact:

Legend symbol

Post by ssundoro » Mon Sep 11, 2006 5:42 pm

I need to get rid of one or more legend symbols on the bar chart.
I know how to get rid of the text in the legend
using : GetLegendText property
but it did not take out the rectangle symbol infront of it.

is there any other property to take out both symbol and text completely?


Thanks in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Sep 12, 2006 9:49 am

Hi ssundoro,

I don't know what are you trying to achieve. However you may be interested in changing the legend style, for example using:

Code: Select all

      tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;
Best Regards,
Narcís Calvet / 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

ssundoro
Newbie
Newbie
Posts: 10
Joined: Wed Jun 22, 2005 4:00 am
Contact:

Post by ssundoro » Tue Sep 12, 2006 3:38 pm

Hi Narcis,

Thank you for your reply.

Actually I have a problem in my chart:
I have 3 bars and like to modify legend completely to insert different value for ex:

3 bars contains : phone, meeting and todo activity
and in legend I want to display just one user name that has this activity.

so far I set text to an empty string using GetLegendText event, but that is still showing 3 symbol with only one user at top and the rest is empy text.

is there away to only show one symbol in the legend?

Thanks in advance

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 13, 2006 8:07 am

Hi ssundoro,

Have you tried using the code I posted yesterday? If you have one series with several values, using this code will set the legend to only display one item with the series name. Then you can customize that text to whatever you want using the GetLegendText event.
Best Regards,
Narcís Calvet / 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

ssundoro
Newbie
Newbie
Posts: 10
Joined: Wed Jun 22, 2005 4:00 am
Contact:

Post by ssundoro » Wed Sep 13, 2006 1:24 pm

Thanks Narcis

Cool it works ............
Finally I can display and customize legend.

Post Reply