Page 1 of 1

Line style in HorizLineSeries

Posted: Fri Jan 13, 2006 9:25 am
by 9529394
Hi,

I am using HorizLineSeries, every serie has a lot of points, and when I change the line style, what I see in the teechart is not what I expected to have.

In the example, the line type is set to Dashed but I see a solid line.

Example data:

Size of teechart: 825 x 725 pixels
Left (Y) Axis (Min, Max) are: (-18941638.6 ,-18941600.6)
Bottom(X) Axis (Min,Max) are: (25, 100)
Normal Horizontal Line Serie.
Series points are:
Index X Y
0 83.223 -18941600.6
1 81.807 -18941601.6
2 80.370 -18941602.6
3 78.973 -18941603.6
4 77.571 -18941604.6
5 76.193 -18941605.6
6 74.781 -18941606.6
7 73.357 -18941607.6
8 71.961 -18941608.6
9 70.567 -18941609.6
10 69.144 -18941610.6
11 67.739 -18941611.6
12 66.316 -18941612.6
13 64.896 -18941613.6
14 63.483 -18941614.6
15 62.068 -18941615.6
16 60.661 -18941616.6
17 59.260 -18941617.6
18 57.861 -18941618.6
19 56.428 -18941619.6
20 55.021 -18941620.6
21 53.670 -18941621.6
22 52.244 -18941622.6
23 50.822 -18941623.6
24 49.428 -18941624.6
25 48.112 -18941625.6
26 46.918 -18941626.6
27 45.684 -18941627.6
28 44.337 -18941628.6
29 42.894 -18941629.6
30 41.575 -18941630.6
31 40.246 -18941631.6
32 38.808 -18941632.6
33 37.353 -18941633.6
34 35.921 -18941634.6
35 34.527 -18941635.6
36 33.172 -18941636.6
37 31.773 -18941637.6
38 30.334 -18941638.6

Can you tell me why?

Thanks,

Josep Oncins i Casanova

Posted: Fri Jan 13, 2006 9:50 am
by narcis
Hi Josep,

This is because there are too many points for the chart size you mentioned and the dashes overlap one to each other making the series having the look of a solid line. If you don't want to have a solid line you'll have to set the line pen style to Dot, DashDot, DashDotDot or SmallDots.

Posted: Fri Jan 13, 2006 10:20 am
by 9529394
I see, but I can not delete points and I need to see a dashed line.
You said that
...the dashes overlap one to each other making the series having the look of a solid line...
It is not posible to draw all the points without restarting the dashed line pattern on every point?

Posted: Fri Jan 13, 2006 10:58 am
by narcis
Hi Josep,

I'm afraid this is not possible for now. Another option you have is increasing pen's width:

Code: Select all

TChart1.Series(0).Pen.Width = 2
This makes the dashes visible.

Posted: Fri Jan 13, 2006 11:38 am
by 9529394
It works fine, thanks