Reputation: 35
i Have this code for drawing a profile of one plane figure.
Chart1.Series.Clear;
Lser:=TLineSeries.Create(Chart1);
for x:= 1 to 20 do
Lser.AddXY(strtofloat(stringgrid1.Cells[1,x]),strtofloat(stringgrid1.Cells[2,x]));
chart1.AddSeries(Lser);
lser.LinePen.Width:=2;
lser.SeriesColor:=clred;
Now, how can change the background color of my plane figure? Thank you very much
if u see the picture, i want draw only the yellow area (i fill it on paint of windows)
Upvotes: 2
Views: 491
Reputation: 3349
chart1.Backwall.Transparent := False;
chart1.Backwall.Color := clgreen;
Upvotes: 0