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 1680 - When the BarWidthPercernt is 100, the bars overlap each other a lot.
Summary: When the BarWidthPercernt is 100, the bars overlap each other a lot.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart for .Net 4.1.2016.05125
Hardware: PC Windows
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-09 05:56 EST by sandra pazos
Modified: 2016-12-01 02:51 EST (History)
2 users (show)

See Also:
Chart Series: ---
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 sandra pazos 2016-11-09 05:56:15 EST
In the latest version (build 2016.10260), bars overlap each other a lot when the style is side and BarWidthPercernt is 100%. Instead in old version (build 4.1.2015.05144) all bars are more or less adjacent to each other as do in TeeChart VCL. 
I have attached a simple code to reproduce the problem:
private void InitializeChart()
        {
            Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);

            bar.Add(0, 10, "Cat1");
            bar.Add(1, 20, "Cat2");
            bar.Add(2, 30, "Cat3");
            bar.BarWidthPercent = 100;

            Steema.TeeChart.Styles.Bar bar2 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);

            bar2.Add(0, 30, "Cat1");
            bar2.Add(1, 10, "Cat2");
            bar2.Add(2, 20, "Cat3");
            bar2.BarWidthPercent = 100;
            tChart1.DoubleClick += TChart1_DoubleClick;
        }
Also,  I have added the same code in Teechart VCL:
uses Series;
var series1,series2 : TBarSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
series1 := TBarSeries.Create(self);
Chart1.AddSeries(series1);
Chart1.View3D := false;
series2 :=TBarSeries.Create(self);
Chart1.AddSeries(series2);
series1.AddXY(0,10,'cat1');
series1.AddXY(1,20,'cat2');
series1.AddXY(2,30,'cat3');
series1.BarWidthPercent := 100;

series2.AddXY(0,30,'cat1');
series2.AddXY(1,10,'cat2');
series2.AddXY(2,20,'cat3');
series2.BarWidthPercent := 100;
end;
Comment 1 svandeneynde 2016-11-28 05:08:39 EST
We are relying heavily on the behavior of setting BarWidthPercent = 100 as it is described in the TeeChart for .NET Library Reference (http://www.teechart.net/docs/):
"The BarWidthPercent property determines the percent of total Bar width used. Setting BarWidthPercent = 100 makes joined Bars."
Having overlapping bars in this case is therefore not an option for us.
As a result, this bug prevents us from doing an upgrade of our version of TeeChart.NET, so we are currently stuck at build 4.1.2015.05144.

Is it possible to give an estimation on when this bug is planned to be fixed, so we know when we can plan in an upgrade of our current TeeChart.NET installation?
Thanks in advance.
Comment 2 svandeneynde 2016-12-01 02:51:43 EST
Thank you very much for the quick resolution of this issue!
We are already looking forward to the release of the next version of TeeChart.NET.