Page 1 of 1

How to: Gradient 3D Bar

Posted: Wed Nov 02, 2005 12:48 pm
by 9528641
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

Posted: Wed Nov 02, 2005 6:13 pm
by 9527947
Hi,

You use the wrong rectangle style. Use this instead:

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

Alex

Posted: Thu Nov 03, 2005 11:42 am
by 9528641
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.

Posted: Thu Nov 03, 2005 12:17 pm
by narcis
Hi victorino,

This features is not implemented but is already on our wish-list to be implemented for future releases.