Series.Active property also hides text in legend

TeeChart for ActiveX, COM and ASP
Post Reply
Jenn
Newbie
Newbie
Posts: 19
Joined: Fri Jul 08, 2005 4:00 am
Location: Logan, Utah United States

Series.Active property also hides text in legend

Post by Jenn » Fri Oct 27, 2006 6:03 pm

Hello,

I want to allow the user to view data numerically in the legend, but not necessarily in the graph.

When I set the following attributes.

Code: Select all

  series.SetActive(false);
  series.SetShowInLegend(true);
I don't get the desired effect. The line disappears in the graph, but it is also removed from the legend.

Note too that I do not have check boxes enabled. When check boxes are enabled, the graph and legend work as expected; however, when check boxes are not enabled, I don't get the desired effect.

Thank you for any help,

Jennifer Britt

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 Oct 31, 2006 11:02 am

Hi Jenn,

This is as designed. However you can solve this making the series active and setting it's color to clNone.
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

Jenn
Newbie
Newbie
Posts: 19
Joined: Fri Jul 08, 2005 4:00 am
Location: Logan, Utah United States

Post by Jenn » Wed Nov 01, 2006 6:27 pm

Thank you for you help, as always, Narcis.

Shucks. I was hoping that the Active attribute would do what I wanted it to do.

Setting the color to clNone doesn't work for me; I believe it's because clNone doesn't consider the background color. Either way, I can still see the line; it's just a dark line.

I found that setting the pen.Visible attribute works beautifully for hiding the line in the graph.

Code: Select all

series.GetPen().SetVisible(false);
series.SetShowInLegend(true);
This hides the data in the graph, but shows the data numerically in the legend. Wonderful! Except... Well, even though the line is hidden, the axis is still scaled to include the invisible line.

So, I would like to add something to a feature wish list, please.

When the legend check boxes are enabled, setting

Code: Select all

series.SetActive(false);
series.SetShowInLegend(true);
works the way I would like it to. Is there a way I can get this to do the same thing when check boxes are not enabled? I believe that this would need to be a new feature in a future release, so I would like to request it now.

Thank you again for all your help,

Jenn

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

Post by Narcís » Thu Nov 02, 2006 11:08 am

Hi Jenn,

Ok, I've added your request to our wish-list to be considered for inclusion in future releases.
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

Jenn
Newbie
Newbie
Posts: 19
Joined: Fri Jul 08, 2005 4:00 am
Location: Logan, Utah United States

Post by Jenn » Tue Nov 07, 2006 6:32 pm

Thank you!

Post Reply