Page 1 of 1

Legend symbol

Posted: Mon Sep 11, 2006 5:42 pm
by 9787319
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.

Posted: Tue Sep 12, 2006 9:49 am
by narcis
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;

Posted: Tue Sep 12, 2006 3:38 pm
by 9787319
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

Posted: Wed Sep 13, 2006 8:07 am
by narcis
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.

Posted: Wed Sep 13, 2006 1:24 pm
by 9787319
Thanks Narcis

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