Cone bar graphs with gradient

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Cone bar graphs with gradient

Post by UserLS » Wed Mar 17, 2010 5:28 pm

I have a bar graph. If I select its style as Cone or Inverted Cone, than make its Gradient visible and select Gradient Direction "From Center" or "Radial" I am getting "Out of memory" error and kicked out of my program without a chance to save my changes. I am running a December build of version 3. I have problems installing the latest build (see my previous post), but the release notes do not indicate that this problem was fixed there.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Cone bar graphs with gradient

Post by Sandra » Thu Mar 18, 2010 11:14 am

Hello UserLs,

I could reproduce your problem with last versions of TeeChart .Net (version 3 and version 4). I have added it in Bug list report with number[TF02014735] and we will try to fix for next versions of TeeChart .Net.

On the other hand, I think it is interesting to know, the problem works correctly in run time, using next lines of code:

Code: Select all

private void InitializeChart()
        {
            bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            bar1.FillSampleValues();
            bar1.Pen.Visible = false;
            bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.InvCone;
            bar1.Gradient.Visible = true;
            bar1.Gradient.Style.Direction = Steema.TeeChart.Drawing.PathGradientMode.FromCenter;

        }
I am running a December build of version 3. I have problems installing the latest build (see my previous post),
Please, see Narcis response about your previous post:
http://www.teechart.net/support/viewtop ... 787#p45787

Thanks,
Best Regards,
Sandra Pazos / 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

UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Re: Cone bar graphs with gradient

Post by UserLS » Thu Mar 18, 2010 2:26 pm

There is no mystery there: you forgot to add one line, which makes a whole lot of difference:

Code: Select all

 bar1.Gradient.Style.Visible = true;

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Cone bar graphs with gradient

Post by Sandra » Fri Mar 19, 2010 9:24 am

Hello UserLs,

Thanks, for information. I have added it in bug Report (TF02014735) and we will try to fix for next versions.

Thanks,
Best Regards,
Sandra Pazos / 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