My previous question had some kind of big contribution, but it didn’t work for me, because my problem is related to Delphi 7.
I have a chart with one series (TFastLineSeries) and 3600 data points, which takes up to 45 seconds to draw. Others said that this should be lightning fast, so who can help, bearing in mind that I use Delphi 7 and the standard TChart component.
I suspect that instead of calling AddXY () 3,600 times, I must first prepare the data and then add them all at once.
Update: in D7, the signature of the AddXy () function AddXY(Const AXValue, AYValue: Double; Const AXLabel: String; AColor: TColor) : Longint; wheretimeLabel functionis a string representing MM:SS. But what value should I be passing for
and I cam calling it with Chart1.Series [0] .AddXY (Chart1.Series [0] .Count, codValue, timeLabel, clRed
btw, I encoded Chart1.Series [0] .XValues.DateTime: = True; Chart1.BottomAxis.DateTimeFormat: = 'nn: ss'; // 'hh' or 'nn' or 'ss' as you wish, for example. Chart1.BottomAxis.DateTimeFormat: = "dd / mm / yyyy hh: mm";
source
share