Page 1 of 1

TLineSeries area gradient

Posted: Mon Jan 28, 2013 4:20 pm
by 16464329
Using TeeChart Pro v8.06.60902 VCL with Delphi 2010. On a form with just a default TChart component, I have the following code:

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;
which gives me the following:
TeeChartPro_8_06.PNG
TeeChartPro_8_06.PNG (19.47 KiB) Viewed 6795 times
Using TeeChart Pro v2012 Build 2012.07.121105 VCL with Delphi XE3. The same code give me:
TeeChartPro_2012.PNG
TeeChartPro_2012.PNG (17.76 KiB) Viewed 6799 times
No gradient is applied and even the gradient color is ignored. I am not sure if that's a bug but in any case the behaviour has changed.
I saw that in the latest TeeChart Pro TLineSeries has an AreaChartBrush property which I using in the following way:
TeeChartPro_2012_DifferentApproach.PNG
TeeChartPro_2012_DifferentApproach.PNG (21.79 KiB) Viewed 6795 times
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?

Re: TLineSeries area gradient

Posted: Wed Jan 30, 2013 4:11 pm
by yeray
Hello,

Right, the Gradients had some changes in the v2010.00.
There's the request of implementing a GradientRelative property for the TAreaSeries. This would control if the gradient is considered to start at the maximum YValue for all the points or for each point. I've incremented it's priority (TV52014958).

Re: TLineSeries area gradient

Posted: Fri Jul 12, 2013 3:30 pm
by 16464329
Hello,

I checked the latest version of TeeChart VCL v2013.08.130521 and I am disappointed to see that this issue is still not fixed? As this is a feature regression and not a new feature request, I was expecting it to be solved a bit earlier.
This issue in your component is blocking some of our projects to be moved from Delphi 2010 to the latest Delphi versions since we are now locked with TeeChart Pro v8.06.60902 if we don't want to have this regression for our customers. Please can you inform us if there is any short plan for this to be fixed or if we should investigate for alternatives.

Thanks in advance for your feedback.

Re: TLineSeries area gradient

Posted: Fri Jul 19, 2013 7:50 am
by yeray
Hi,

We are redesigning the gradients and I hope we can close this ticket soon.