Page 1 of 1

Lack of control in Area chart (and other charts as well)

Posted: Fri Jan 02, 2009 11:52 am
by 13051218
As in other chart types, I'm struggling with the available documentation in order to define programatically the different options that you can set interactively -visually-. Nor the available example nor the tutorial show anything on how to use the different color/transparency options for area charts.

Is there any well documentd help where you can see all properties pertaining to each series class or are there additional examples where you can browse the appropriate answer?.

I'm working in VB .NET

Posted: Mon Jan 05, 2009 8:56 am
by narcis
Hi Yacu,

This works fine for me here:

Code: Select all

        Dim area1 As New Steema.TeeChart.Styles.Area(TChart2.Chart)

        area1.Color = Color.Red
        area1.AreaLines.Color = Color.Blue
        area1.Transparency = 50
        area1.FillSampleValues()
With TeeChart's help file you can see all Area series methods and you can also see the series it derives from. You can also use Red Gate's .NET reflectore with TeeChart.dll.

Hope this helps!

Posted: Mon Jan 05, 2009 10:41 am
by 13051218
Thank you for your response.
I donĀ“t know how to assign properties (width, color) to an arrow line (stem) in an arrow series

Posted: Mon Jan 05, 2009 10:52 am
by narcis
Hi Yacu,

You can do this:

Code: Select all

        TChart2.Aspect.View3D = False

        Dim arrow1 As New Steema.TeeChart.Styles.Arrow(TChart2.Chart)

        arrow1.Color = Color.Red
        arrow1.ArrowWidth = 10
        arrow1.FillSampleValues()

Posted: Mon Jan 05, 2009 3:30 pm
by 13051218
These lines affect the end of the arrows. The property I need to control and I cannot find is apparently very simple: The border width in the interactive menu. This property would make the stem thicker.

Posted: Mon Jan 05, 2009 3:35 pm
by narcis
Hi Yacu,

Ok, in that case you can do this:

Code: Select all

			arrow1.Pointer.Pen.Width = 5;

Posted: Mon Jan 05, 2009 3:50 pm
by 13051218
This one has worked. Thank you. I'll probably need to ask you again on different properties

You will notice what I find difficult or rather badly explained: how to translate the properties in the interactive menu to code.

Posted: Mon Jan 05, 2009 4:23 pm
by narcis
Hi Yacu,

Ok, no problem. I also think that the more familiar you become with TeeChart's architecture the easier it will be for you finding such things.