Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var
LLineSeries: TLineSeries;
begin
Chart1.View3D := false;
LLineSeries := TLineSeries.Create(Self);
LLineSeries.DrawArea := true;
LLineSeries.Gradient.StartColor := clWhite;
LLineSeries.Gradient.EndColor := clFuchsia;
LLineSeries.Gradient.Visible := true;
LLineSeries.AddXY(1,2);
LLineSeries.AddXY(2,4);
LLineSeries.AddXY(3,6);
LLineSeries.AddXY(4,9);
LLineSeries.AddXY(5,4);
LLineSeries.AddXY(6,11);
LLineSeries.AddXY(7,7);
LLineSeries.AddXY(8,8);
LLineSeries.AddXY(9,9);
LLineSeries.AddXY(10,6);
Chart1.AddSeries(LLineSeries);
end;
I saw that in the latest TeeChart Pro TLineSeries has an AreaChartBrush property which I using in the following way: but the gradiant balance is changing for each point area which is different from what I had before.
How can I get back my old behaviour as in my first screenshot?