C P
C P

Reputation: 35

Change background color of TAchart series

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) enter image description here

Upvotes: 2

Views: 491

Answers (2)

C P
C P

Reputation: 35

Thanks to all, i solved it with TAreaSeries.

Upvotes: 1

iamjoosy
iamjoosy

Reputation: 3349

chart1.Backwall.Transparent := False;
chart1.Backwall.Color := clgreen;

Upvotes: 0

Related Questions