Page 1 of 1

Different line style & resize depend on screen resolution

Posted: Fri Jul 10, 2009 12:54 pm
by 9641714
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,

Re: Different line style & resize depend on screen resolution

Posted: Fri Jul 10, 2009 1:55 pm
by yeray
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.

Re: Different line style & resize depend on screen resolution

Posted: Mon Jul 13, 2009 5:07 am
by 9641714
So the chart style is LinePoint? Do this kind of style also apply on line or fastline?

Re: Different line style & resize depend on screen resolution

Posted: Mon Jul 13, 2009 8:53 am
by yeray
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.