Bar Charts

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

Bar Charts

Post by UserLS » Sat Mar 27, 2010 5:20 am

What I have noticed after playing with 2009 version - the bars are drawn under slightly different angle now. Here are two identical graphs:

This one created using version 3:
BarChart.Cone.version3.png
BarChart.Cone.version3.png (33.3 KiB) Viewed 3656 times
And this one - using version 2009:
BarChart.Cone.version2009.png
BarChart.Cone.version2009.png (34.48 KiB) Viewed 3656 times
Ideally, I'd like them to be the same (besides the bug fixes!)

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

Re: Bar Charts

Post by Sandra » Wed Mar 31, 2010 11:55 am

Hello UserLs,
What I have noticed after playing with 2009 version - the bars are drawn under slightly different angle now. Here are two identical graphs:
Ideally, I'd like them to be the same (besides the bug fixes!)
Bars are drawn under slightly different angle now, for consistency with other TeeChart versions. If you want to have same result in two graphics you only change value DephtPercent as next:

Code: Select all

 Steema.TeeChart.Styles.Bar bar1;
        private void InitializeChart()
        {
            bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            for (int i = 0; i < 10; i++)
            {
                bar1.Add(i, i + 5);
            }
            bar1.Marks.Visible = false;
            bar1.BarStyle = Steema.TeeChart.Styles.BarStyles.Cone;
            bar1.UseOrigin = true;
            bar1.Origin = 10;
            bar1.DepthPercent = 50;
           
        }
I hope will helps.

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