TLineSeries area gradient

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
optimaco
Newbie
Newbie
Posts: 4
Joined: Wed Dec 05, 2012 12:00 am

TLineSeries area gradient

Post by optimaco » Mon Jan 28, 2013 4:20 pm

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 6873 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 6877 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 6873 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?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TLineSeries area gradient

Post by Yeray » Wed Jan 30, 2013 4:11 pm

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

optimaco
Newbie
Newbie
Posts: 4
Joined: Wed Dec 05, 2012 12:00 am

Re: TLineSeries area gradient

Post by optimaco » Fri Jul 12, 2013 3:30 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TLineSeries area gradient

Post by Yeray » Fri Jul 19, 2013 7:50 am

Hi,

We are redesigning the gradients and I hope we can close this ticket soon.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply