Page 1 of 1

How do I make Series not visible in 3D Charts?

Posted: Fri Oct 07, 2005 9:01 pm
by 9527388
I have added the ability for a user to be able to show/hide trace lines. This works great when the chart is in 2D mode; however, when in 3D mode the line representation still is visible. When in 3D mode, making the line not visible, the black lines that represent the individual values are removed, but the 3D colored line still remains.

For the 2D representation, I use the following line of code to turn on/off the visibility of the line.

Code: Select all

TChart1.Series(i).asLine.LinePen.Visible = false
or

Code: Select all

TChart1.Series(i).asLine.LinePen.Visible = true
Is there a special call I need to make to hide the 3D line representation? I tried :

Code: Select all

TChart1.Series(i).asPoint3D.LinePen.Visible = false
but that didn't appear to do anything different.

Thanks for your assistance in this.

Regards,
Scott Small

Posted: Mon Oct 10, 2005 7:47 am
by narcis
Hi Scott,

With 3D series is not enough making pen visible, you should also make brush not visible. However, it is easier doing:

Code: Select all

TChart1.Series(i).Active = False