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.
Legend symbol
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |