How to: Gradient 3D Bar

TeeChart for ActiveX, COM and ASP
Post Reply
victorino
Newbie
Newbie
Posts: 2
Joined: Thu Sep 29, 2005 4:00 am

How to: Gradient 3D Bar

Post by victorino » Wed Nov 02, 2005 12:48 pm

Hi, I try an example for chart width gradient 3D bar, the code is:

Chart1.Series(0).asBar.BarStyle=bsRectangle
Chart1.Series(0).asBar.Gradient.Visible=true
Chart1.Series(0).asBar.Gradient.Direction=2
Chart1.Series(0).asBar.Gradient.StartColor=RGB(0,0,0)
Chart1.Series(0).asBar.Gradient.MidColor=RGB(128,128,128)
Chart1.Series(0).asBar.Gradient.EndColor=RGB(256,256,256)

Chart1.Width = 520
Chart1.Height = 200


Chart1.Series(0).FillSampleValues 4
Chart1.Series(0).asBar.Dark3D=True

The Gradient no work, why?

Best Regards

TTL
Newbie
Newbie
Posts: 36
Joined: Thu Aug 04, 2005 4:00 am

Post by TTL » Wed Nov 02, 2005 6:13 pm

Hi,

You use the wrong rectangle style. Use this instead:

Chart1.Series(0).asBar.BarStyle = bsRectGradient

Alex

victorino
Newbie
Newbie
Posts: 2
Joined: Thu Sep 29, 2005 4:00 am

Post by victorino » Thu Nov 03, 2005 11:42 am

Hi Alex

Thank you for the help, i change the Style and work fine.

But how to change bar sides for view the gradient? the property Dark3D is false and the sides no gradient color.

Best Regards.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 03, 2005 12:17 pm

Hi victorino,

This features is not implemented but is already on our wish-list to be implemented for future releases.
Best Regards,
Narcís Calvet / 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

Post Reply