Different line style & resize depend on screen resolution

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Beige
Newbie
Newbie
Posts: 25
Joined: Wed Jun 28, 2006 12:00 am

Different line style & resize depend on screen resolution

Post by Beige » Fri Jul 10, 2009 12:54 pm

I would like to know the code behind this sample chart to have different line style
http://www.steema.com/img_products/gall ... 00x600.jpg

and how to resize chart depend detect user screen's resolution.

Thanks,

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Different line style & resize depend on screen resolution

Post by Yeray » Fri Jul 10, 2009 1:55 pm

Hi Beige,

Let me show the picture you talk about:
Image
This seems the Interpolating line series demo with the BlackIsBlack theme.

Here there are some of the properties set for the lines:

Code: Select all

line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
line1.Pointer.HorizSize = 3;
line1.Pointer.VertSize = 3;
line1.Pointer.Visible = true;
Note that you can see the code of the demos in the same demos application.

About the screen resolution, you can retrieve it with this:

Code: Select all

SystemInformation.PrimaryMonitorSize
then you could use this proportion to change chart's proportion.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Beige
Newbie
Newbie
Posts: 25
Joined: Wed Jun 28, 2006 12:00 am

Re: Different line style & resize depend on screen resolution

Post by Beige » Mon Jul 13, 2009 5:07 am

So the chart style is LinePoint? Do this kind of style also apply on line or fastline?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Different line style & resize depend on screen resolution

Post by Yeray » Mon Jul 13, 2009 8:53 am

Hi Beige,

This is a line series with its pointers visible.
Fast lines series has no pointer that could be shown.

To see how this example has been done, please, take a look at the code in the demo All Features\Welcome !\Chart styles\Standard\Line(Strip)\Interpolating line series.
You should find tutorials and demos at TeeChart programs group.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply