Hello,
FastLine Series' goal is to be as fast as possible, it doesn't support Null points in the same way as a standard Line Series (ie. it plots up to the null point, not to/from) but gives you some options on how to rework them. If you are obtaining no null point so far, you should start by setting IgnoreNulls to False and you can decide how to deal with the nulls.
eg.
Code: Select all
With TChart1
.Series(0).asFastLine.IgnoreNulls = False
.Series(0).asFastLine.AddRealTime 0, 3, "", clTeeColor
.Series(0).asFastLine.AddRealTime 1, 2, "", clTeeColor
'can use AddNullXY:
.Series(0).AddNullXY 2, 0, ""
.Series(0).AddNullXY 3, 4, ""
'or Color at clNone
.Series(0).asFastLine.AddRealTime 2, 0, "", clNone
.Series(0).asFastLine.AddRealTime 3, 4, "", clNone
.Series(0).asFastLine.AddRealTime 4, 2, "", clTeeColor
.Series(0).asFastLine.AddRealTime 5, 3, "", clTeeColor
End With
In the above example the Line between 1 and 3 (2 point span) is set to non-visible by setting the Y value of the last null to the y value of the following visible point. That may be a way to obtain what you require. Note that AddNullXY may be used or simply adding a point with the clNone colour.
An alternative would be to jump the gap entirely by adding just one Null point but by setting its value to the value of the following visible point. What you decide may depend on how you wish to interpret and work with the Chart.
Eg.
Code: Select all
' visible point
.Series(0).asFastLine.AddRealTime 1, 2, "", clTeeColor
' non-visible point
.Series(0).asFastLine.AddRealTime 3, 4, "", clNone
' visible point
.Series(0).asFastLine.AddRealTime 3, 4, "", clTeeColor
I hope that may be of help.
Regards,
Marc Meumann
Steema Support