I have a set of points (x, y) which I wish to make the graph.
everything works well and it's appears :
// test.csv
q;ha
0,5;25,3
0,55;24,7
0,6;24
0,65;23,5
0,7;23
0,8;22,2
0,9;21,4
1;20,8
1,1;20,2
1,2;19,7
1,3;19,2
1,4;18,8
1,6;18,1
1,8;17,5
2;17
2,25;16,5
2,5;15,8
2,75;15,4
3;15
here is the code :
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
with SeriesTextSource1 do
begin
Fields.Clear;
AddField('q', 1);
AddField('ha', 2);
HeaderLines := 1;
FieldSeparator := ';';
DecimalSeparator := ',';
FileName := 'test.csv';
Series := Series1;
Chart1.LeftAxis.Title.Visible := true;
Chart1.BottomAxis.Title.Visible := true;
Active := True;
end;
end;
example: q = 2 should give ha = 17 and
q = 3 should give ha = 15
?
Can you help me
thank you
Didier