Gradient not working with bar series in Tee2010.02 Delphi XE

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jays
Newbie
Newbie
Posts: 8
Joined: Wed Dec 15, 2010 12:00 am

Gradient not working with bar series in Tee2010.02 Delphi XE

Post by Jays » Fri Mar 18, 2011 1:29 pm

Hello,

using latest Tee2010.02 Version with Delphi XE Enterprise under Win 7 64 bit does not allow to activate gradient for bar series (hoz. and vert.).

I used this feature for several years now, but it does not work either in designtime nor in runtime.

The same happens with TAreaseries (I read the post above but the workaround does not work for bar series).

As you can see in the attachment the legend is filled with the desired gradient, but the bars are not.

Everything works fine with e.g TPointSeries and TPieSeries.

Thanks for any solution.

regards
Jo
Attachments
NoGradient.zip
Screenshots in design and runtime
(72.85 KiB) Downloaded 344 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Gradient not working with bar series in Tee2010.02 Delphi XE

Post by Sandra » Fri Mar 18, 2011 3:09 pm

Hello Jay,
using latest Tee2010.02 Version with Delphi XE Enterprise under Win 7 64 bit does not allow to activate gradient for bar series (hoz. and vert.).
I used this feature for several years now, but it does not work either in designtime nor in runtime.
If you want change gradient of Bar Series, you need change BarStyle property to Rectangle Gradient, as do in next lines of code:

Code: Select all

uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  with Chart1.AddSeries(TBarSeries) as TBarSeries do
  begin
    FillSampleValues(3);
    BarStyle:=bsRectGradient;
    Gradient.Visible:=true;
  end;

  Chart1.Draw;
end;
Could you tell us if previous code works as you expected?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jays
Newbie
Newbie
Posts: 8
Joined: Wed Dec 15, 2010 12:00 am

Re: Gradient not working with bar series in Tee2010.02 Delphi XE

Post by Jays » Fri Mar 18, 2011 3:41 pm

It works perfectly!

Thank you!

This needs to implemented in the Charteditor for your future works...

Jays
Newbie
Newbie
Posts: 8
Joined: Wed Dec 15, 2010 12:00 am

Re: Gradient not working with bar series in Tee2010.02 Delphi XE

Post by Jays » Fri Mar 18, 2011 3:54 pm

Oh, sorry. It's already implemented.

Everything is fine!

Post Reply