Page 1 of 1

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

Posted: Fri Mar 18, 2011 1:29 pm
by 16558106
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

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

Posted: Fri Mar 18, 2011 3:09 pm
by 10050769
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,

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

Posted: Fri Mar 18, 2011 3:41 pm
by 16558106
It works perfectly!

Thank you!

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

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

Posted: Fri Mar 18, 2011 3:54 pm
by 16558106
Oh, sorry. It's already implemented.

Everything is fine!