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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Yacu
Newbie
Newbie
Posts: 31
Joined: Tue Dec 23, 2008 12:00 am

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

Post by Yacu » Fri Jan 02, 2009 11:52 am

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

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

Post by Narcís » Mon Jan 05, 2009 8:56 am

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!
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

Yacu
Newbie
Newbie
Posts: 31
Joined: Tue Dec 23, 2008 12:00 am

Post by Yacu » Mon Jan 05, 2009 10:41 am

Thank you for your response.
I don´t know how to assign properties (width, color) to an arrow line (stem) in an arrow series

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

Post by Narcís » Mon Jan 05, 2009 10:52 am

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()
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

Yacu
Newbie
Newbie
Posts: 31
Joined: Tue Dec 23, 2008 12:00 am

Post by Yacu » Mon Jan 05, 2009 3:30 pm

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.

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

Post by Narcís » Mon Jan 05, 2009 3:35 pm

Hi Yacu,

Ok, in that case you can do this:

Code: Select all

			arrow1.Pointer.Pen.Width = 5;
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

Yacu
Newbie
Newbie
Posts: 31
Joined: Tue Dec 23, 2008 12:00 am

Post by Yacu » Mon Jan 05, 2009 3:50 pm

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.

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

Post by Narcís » Mon Jan 05, 2009 4:23 pm

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.
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

Post Reply