I am currently trying to use Chart 3
Code: Select all
type
TForm1 = class(TForm)
Chart3: TChart;
Code: Select all
Chart3.Series[0].Clear;
Chart3.Series[0].AddXY;
Thank you.
David
Code: Select all
type
TForm1 = class(TForm)
Chart3: TChart;
Code: Select all
Chart3.Series[0].Clear;
Chart3.Series[0].AddXY;
Code: Select all
unit data_plotting;
interface
uses
SysUtils, declarations, TeEngine;
function dataplotting: Variant;
implementation
uses
headunit;
var
I: SmallInt;
//..............................................................................
// DATA PLOTTING FUNCTION REV 1.00/ 26/07/07
//..............................................................................
function dataplotting: Variant;
begin
while not Eof(XFile) do //keep looping until the end of XFile
begin
Readln(XFile, x); //read line from file to x
Readln(YFile, y1, y2, y3, y4, y5);
Chart3.Series[1].AddXY((x*xfreqmulti), (y1 * CalMulti), '', clTeeColor);
Chart3.Series[2].AddXY((x*xfreqmulti), (((y4 * CalMulti) / 6) + MaxYValue + 4), '', clTeeColor);
Chart3.Series[3].AddXY((x*xfreqmulti), (((y2 * CalMulti) / 6) + MaxYValue + 7), '', clTeeColor);
Chart3.Series[4].AddXY((x*xfreqmulti), (((y5 * CalMulti) / 6) + MaxYValue + 10), '', clTeeColor);
Chart3.Series[5].AddXY((x*xfreqmulti), (y3 * CalMulti), '', clTeeColor); //plot transformer coil voltage
QuickLoadBuffX[J]:= (x*xfreqmulti);
QuickLoadBuffY[J]:= (y1 * CalMulti);
BluePoleBuffY[J]:= y5;
RedPoleBuffY[J]:= y4;
WhitePoleBuffY[J]:= y2;
Inc (J); //increasing J by 1
end;
end;