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 2196

Summary: Group bars per vertical axis
Product: .NET TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: https://stackoverflow.com/a/33784763/509369
Chart Series: Bar Delphi / C++ Builder RAD IDE Version:
Attachments: .NET screenshot
VCL screenshot

Description yeray alonso 2019-05-09 04:35:18 EDT
Created attachment 911 [details]
.NET screenshot

Having a chart vertically separated in two zones; one zone using the default Left axis and the other using a custom axis; each zone with a couple of Bar series.

There are blank gaps between the bars in TeeChart .NET(screenshot attached).
It works as expected in TeeChart VCL (screenshot attached).

TeeChart .NET (C#):

      tChart1.Aspect.View3D = false;
      tChart1.Legend.Visible = false;

      tChart1.Axes.Left.StartPosition = 0;
      tChart1.Axes.Left.EndPosition = 48;

      var leftCustom = new Axis(tChart1.Chart);
      tChart1.Axes.Custom.Add(leftCustom);
      leftCustom.StartPosition = 52;
      leftCustom.EndPosition = 100;

      for (int i = 0; i < 4; i++)
      {
        var s = new Bar(tChart1.Chart);
        s.FillSampleValues();
        s.Marks.Visible = false;
        if (i % 2 == 0)
        {
          s.CustomVertAxis = leftCustom;
        }
      }

TeeChart VCL (Delphi):

    procedure TForm1.FormCreate(Sender: TObject);
    var leftCustom: TChartAxis;
        i: Integer;
    begin
      Chart1.View3D:=False;
      Chart1.Legend.Hide;

      Chart1.Axes.Left.StartPosition := 0;
      Chart1.Axes.Left.EndPosition := 48;

      leftCustom := Chart1.CustomAxes.Add;
      leftCustom.StartPosition := 52;
      leftCustom.EndPosition := 100;

      for i := 0 to 3 do
        with TBarSeries(Chart1.AddSeries(TBarSeries)) do
        begin
          MultiBar:=mbSide;

          FillSampleValues();
          Marks.Visible := false;
          if (i mod 2 = 0) then
            CustomVertAxis := leftCustom;
        end;
    end;
Comment 1 yeray alonso 2019-05-09 04:35:37 EDT
Created attachment 912 [details]
VCL screenshot