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