Page 1 of 1
Bars overlap
Posted: Tue Sep 04, 2012 12:25 pm
by 15660987
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.
Re: Bars overlap
Posted: Wed Sep 05, 2012 8:29 am
by 10050769
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,
Re: Bars overlap
Posted: Fri May 24, 2013 9:58 am
by 15664347
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.
Re: Bars overlap
Posted: Fri May 24, 2013 12:18 pm
by 10050769
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,
Re: Bars overlap
Posted: Fri Sep 09, 2016 1:28 am
by 15677089
Is this issue resolved? I have the same problem.
Re: Bars overlap
Posted: Mon Sep 12, 2016 12:01 pm
by Christopher
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.
Re: Bars overlap
Posted: Thu Jan 26, 2017 5:49 am
by 15677090
Is this issue fixed already?
Re: Bars overlap
Posted: Thu Jan 26, 2017 2:42 pm
by Christopher
PidoTech wrote:Is this issue fixed already?
Yes, this one is fixed too:
- bar_space.PNG (27.6 KiB) Viewed 14066 times