Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1636 - [TF02016328] Bar series overlap when the bottom axis minimum and maximum aren't automatic.
Summary: [TF02016328] Bar series overlap when the bottom axis minimum and maximum aren...
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 09:33 EDT by christopher ireland
Modified: 2016-09-22 09:44 EDT (History)
0 users

See Also:
Chart Series: Bar
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christopher ireland 2016-09-22 09:33:40 EDT
Bar series overlap when the bottom axis minimum and maximum aren't automatic.
If you add a Bar Series with a determinate range of values, disable the automatic Minimum and Maximum of bottom axis; assign other range, more big. The Bars overlap. Would be interesting Bar Series is recalculating the BarWidthPercent automatically, and adapting it to the range of bottom axis when it isn't automatic to get good results.
See next code to reproduce the problem:
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);
}
A workaround to solve this problem is changing manually the BarWidthPercent.