Page 1 of 1

Series.Active property also hides text in legend

Posted: Fri Oct 27, 2006 6:03 pm
by 9527696
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

Posted: Tue Oct 31, 2006 11:02 am
by narcis
Hi Jenn,

This is as designed. However you can solve this making the series active and setting it's color to clNone.

Posted: Wed Nov 01, 2006 6:27 pm
by 9527696
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

Posted: Thu Nov 02, 2006 11:08 am
by narcis
Hi Jenn,

Ok, I've added your request to our wish-list to be considered for inclusion in future releases.

Posted: Tue Nov 07, 2006 6:32 pm
by 9527696
Thank you!