Page 1 of 1

Points line not appearing

Posted: Mon Jun 28, 2004 12:44 am
by 8125097
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.

Posted: Mon Jun 28, 2004 4:29 am
by Marjan
Hi.

Instead of using point series, why don't you simply use line series ?

Posted: Mon Jun 28, 2004 12:03 pm
by 8125097
We need to see our missing datapoints, so a line would give the illusion of continuity where none exists.

Posted: Mon Jun 28, 2004 4:18 pm
by Pep
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