Hi,
I would like to be able to turn on/off gradient for bar/pie chart programmatically. I had gradient turn on by default and try the follow to turn it off.
ppDPTeeChart1.Chart.Gradient.Visible :=false;
ppDPTeeChart1.Chart.Legend.Gradient.Visible :=false;
This seems to have no effect. I am doing this with ReportBuilder and TeeChart 7.0.
Am I missing something? Any idea?
thanks in advance!
Turn on/off gradient for pie/bar chart programmatically
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Wayne,
For a TBarSeries you should do:
And for a TPieSeries would be:
For a TBarSeries you should do:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
Series1.BarStyle:=bsRectangle;
Chart1.Legend.Gradient.Visible:=false;
end;
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
Series1.Gradient.Visible:=false;
Chart1.Legend.Gradient.Visible:=false;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |