Bars overlap

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MVB
Newbie
Newbie
Posts: 11
Joined: Fri Dec 09, 2011 12:00 am

Bars overlap

Post by MVB » Tue Sep 04, 2012 12:25 pm

Hi,

When I set the min and max values of my bottom axis, my bars start to overlap as shown in the screenshot attached.

The code I use is the following:
chartToTest.Aspect.View3D = false;

chartToTest.Axes.Bottom.Automatic = false;
chartToTest.Axes.Bottom.Minimum = 0;
chartToTest.Axes.Bottom.Maximum = 10;

Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar(chartToTest.Chart);
bar.Add(1, 1000);
bar.Add(2, 1200);
bar.Add(3, 900);
bar.Add(4, 800);

What can I do to make the bars fit next to each other.

Thanks,
Marijke.
Attachments
screenshotBarsOverlap.PNG
screenshotBarsOverlap.PNG (20.12 KiB) Viewed 14965 times

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

Re: Bars overlap

Post by Sandra » Wed Sep 05, 2012 8:29 am

Hello MVB,

We have considered your problem as a feature request with number [TF02016328] to be consider its inclusion in upcoming versions of TeeChartFor.Net. At the moment, a workaround to solve the problem you can change the BarWidthPercent to resize the bars. You can do something as next:

Code: Select all

 private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            tChart1.Axes.Bottom.Automatic = false;
            tChart1.Axes.Bottom.Minimum = 0;
            tChart1.Axes.Bottom.Maximum = 10;
            Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            bar.Add(1, 1000);
            bar.Add(2, 1200);
            bar.Add(3, 900);
            bar.Add(4, 800);
            bar.BarWidthPercent = 25;
        }
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

OMP
Newbie
Newbie
Posts: 21
Joined: Mon Dec 10, 2012 12:00 am

Re: Bars overlap

Post by OMP » Fri May 24, 2013 9:58 am

Hi Sandra,

The BarWidthPercent is indeed a workaround, but in our user interface we do not want a user to configure a certain percentage, and we cannot derive a percentage value which fits for all charts.
When is a solution for the Feature Request with number [TF02016328] planned?

Thanks,
Marijke.

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

Re: Bars overlap

Post by Sandra » Fri May 24, 2013 12:18 pm

Hello Marijke.

I have increased this severity of feature request number [TF02016328] to try consider it inclusion to upcoming versions of TeeChartFor.Net. On the other hand, I inform you that the time we need to fix the bugs depends on any variables such as the complexity of the problem, the number of issues with even higher priority that claims our team attention. For this reason, i recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

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

DEV1
Newbie
Newbie
Posts: 9
Joined: Wed Dec 02, 2015 12:00 am

Re: Bars overlap

Post by DEV1 » Fri Sep 09, 2016 1:28 am

Is this issue resolved? I have the same problem.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Bars overlap

Post by Christopher » Mon Sep 12, 2016 12:01 pm

DEV1 wrote:Is this issue resolved? I have the same problem.
No, this issue is still existent, unfortunately. We will look to resolve it before the next maintenance release, due out before the end of this month.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

PidoTech
Newbie
Newbie
Posts: 2
Joined: Wed Dec 02, 2015 12:00 am

Re: Bars overlap

Post by PidoTech » Thu Jan 26, 2017 5:49 am

Is this issue fixed already?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Bars overlap

Post by Christopher » Thu Jan 26, 2017 2:42 pm

PidoTech wrote:Is this issue fixed already?
Yes, this one is fixed too:
bar_space.PNG
bar_space.PNG (27.6 KiB) Viewed 14060 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply