I use Teechart pro VCL v2018.24.18 32bit. I wrote some code that plots a chart from input data, which the user can save in a file or DB.
I have one problem, however. This process may be repeated several times, and I need create a new project. I reset the series value before receiving new input data:
if DbChart1.SeriesCount <> 0 then // clear all series data
begin
for dp := 0 to DbChart1.SeriesCount-1 do
begin
DbChart1.Series[dp].Clear;
DbChart1.Series[dp].XValues.FillSequence;
DbChart1.Series[dp].YValues.FillSequence;
dbchart1.Series[dp].CleanupInstance;
end;
end;
Dbchart1.BottomWall.EndPosition := 0;
Dbchart1.LeftWall.EndPosition := 0;
Dbchart1.DepthAxis.Maximum := 0;
All series points have been removed except the last point! I want the serial to be clean, like the first time the program ran. How do I do this?
FillSequenceintended for ? - MBo