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 2027

Summary: Bars overlap each other
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 24.180321   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=17&t=16747
Chart Series: Bar Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-04-11 04:13:20 EDT
Having more than one Bar series, and using the default MultiBar style (mbSide), the bars overlap the bars at their left (except for the first bar, of course).

It looks like the bar rectangles were a couple of pixels too wide.

It's just a couple of pixels but it's noticeable when the second value is smaller than the first one.

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=False;
  Chart1.Legend.Hide;
  Chart1.Axes.Hide;
  Chart1.Walls.Hide;
  Chart1.Title.Hide;
  Chart1.Gradient.Visible:=False;

  for i:=0 to 2 do
    with Chart1.AddSeries(TBarSeries) as TBarSeries do
    begin
      Marks.Hide;
      Add(100-i*20);
    end;
end;