Points line not appearing

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

Points line not appearing

Post by Brian Begy » Mon Jun 28, 2004 12:44 am

This is probably a simple problem. I can't get my points to connect.

point1 = New Steema.TeeChart.Styles.Points(levelsChart.Chart)

'add data
For Each objReading In colReadings
point1.Add(objReading.ReadingTime, objReading.Gallons)
Next
point1.XValues.DateTime = True
point1.Marks.Visible = False
point1.ShowInLegend = True
point1.Pointer.HorizSize = 2
point1.Pointer.VertSize = 2
point1.Visible = True
point1.Color = _LevelsGraphPointsColor
point1.LinePen.Color = _LevelsGraphPointsColor
point1.LinePen.Visible = True
point1.LinePen.Width = 1
point1.LinePen.Transparency = 50

One would think that making the linepen both visible and setting its color would make it show up. Not so.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Jun 28, 2004 4:29 am

Hi.

Instead of using point series, why don't you simply use line series ?
Marjan Slatinek,
http://www.steema.com

Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

Post by Brian Begy » Mon Jun 28, 2004 12:03 pm

We need to see our missing datapoints, so a line would give the illusion of continuity where none exists.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 28, 2004 4:18 pm

Hi,

you can use a line Series with the Pointer visible to True. Also, in case you want to add missing points you can use the Add() method, using similar code to the following :

Code: Select all

        With Line1
            .Pointer.Visible = True
            .Add(10, "")
            .Add(0, "")
            .Add(13, "")
            .Add()
            .Add(1, "")
            .Add(19, "")
        End With

Post Reply