Page 1 of 1

OrgSeries- Gradient direction for FromCenter

Posted: Tue Jul 01, 2008 12:45 pm
by 13045688
May I know how to set gradient direction for OrgSeries as FromCenter programmatically?

So far, I managed to set gradient direction as:
1) Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal
2) Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal
3) Drawing.Drawing2D.LinearGradientMode.Horizontal
4) Drawing.Drawing2D.LinearGradientMode.Vertical

However, there is not option for FromCenter.

Thanks.

Posted: Tue Jul 01, 2008 1:48 pm
by narcis
Hi tangone,

In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.

Posted: Wed Jul 02, 2008 2:28 am
by 13045688
narcis wrote:Hi tangone,

In that case you need to use Steema.TeeChart.Drawing.PathGradientMode.FromCenter.
Thanks, however it seems not working for my case.

I tried:
Dim sGradient As Steema.TeeChart.Drawing.Gradient = New Steema.TeeChart.Drawing.Gradient()
sGradient.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter

OrgSeries get rendered as Horizontal gradient.

I also tried:
Dim sGradient As Steema.TeeChart.Drawing.Gradient = New Steema.TeeChart.Drawing.Gradient()
sGradient.Style.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter

Same as previously, OrgSeries also get rendered as Horizontal gradient.

Anyway suggestion?

Posted: Wed Jul 02, 2008 11:00 am
by narcis
Hi tangone,

Yes, you should do it as shown in the What's New?\Welcome !\New in Canvas\Custom Gradients example in the features demo, available at TeeChart's program group.