Hello.
I am plotting points on a chart. I do not want lines, I want separate dots.
The code is below.
I can of course use lines to make the graph, and I can adjust the width.
But there are gaps in the data, and if I use lines ( S2.LineType := ltFromPrevious;), the lines automatically join up between dots, and I don't see any gaps. I don't want that.
So I use Pointer.Style, either "S2.Pointer.Style := psPoint;" or "S2.Pointer.Style := psCircle;"
This works, but here's the problem (as shown in the attached screenshots):
S2.Pointer.Style := psPoint; is too thin, and I can barely see the line.
S2.Pointer.Style := psCircle; is too thick.
The only other Pointer styles are stars, diamonds, or other shapes, none of which are suitable.
So my question is: How can I just plot dots, and be able to adjust the size of the points?
(Alternatives are to have another, smaller, Pointer style; or to be able to make the size of psCircle smaller.)
procedure TFrm_AquaView.ReadGraphTideFile(InputFile: String);
{ Read in and plot the tide file.
InputFile: tide file (e.g. BWPR01_HHMMYYYY.tid)
}
var
List1: TStringList;
i1: Integer=0;
tidecount: Integer=0;
st1,st2: String;
S2: TLineSeries;
X2: Double;
Minutes, Hours: Integer;
begin
Chart1.ClearSeries;
S2 := TLineSeries.Create(Chart1);
S2.ShowLines:=True;
S2.ShowPoints:=False;
S2.Pointer.Visible:=True;
s2.LinePen.Width:=2;
S2.ShowPoints := True;
S2.LineType := ltNone;
S2.Pointer.Style := psCircle;
// S2.Pointer.Style := psPoint;
S2.Pointer.Brush.Color := clBlack;
S2.Pointer.Pen.Color := clBlack;