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 1587

Summary: Choose the position in the horizontal axis for the mbSide MultiBar style to be drawn
Product: VCL TeeChart Reporter: Bert Kreisel <bert.kreisel>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement CC: sandra
Priority: ---    
Version: 18.160504   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Side by side
Some axes above other axes

Description Bert Kreisel 2016-07-28 05:15:09 EDT
Created attachment 623 [details]
Side by side

For each Bar series we are using a special custom VertAxis so TCustomBarSeries.DoBeforeDrawChart calculates always INumBars=1 
We want to group all series with the same StartinPosition of their mandatory axis (see attachement)

I suggest to change the function SameMandatoryAxis in Procedure TCustomBarSeries.DoBeforeDrawChart as

// Returns True when both Self and ASeries mandatory axis is "the same".
  function SameMandatoryAxis(const ASeries:TChartSeries):Boolean;
  begin
    if YMandatory then
       result:=((VertAxis<>aCustomVertAxis) and      
                (ASeries.VertAxis<>aCustomVertAxis))
                //BK 28.07.2016 or (ASeries.GetVertAxis=GetVertAxis)
                or (ASeries.GetVertAxis.StartPosition=GetVertAxis.StartPosition)
    else
       result:=((HorizAxis<>aCustomHorizAxis) and 
                (ASeries.HorizAxis<>aCustomHorizAxis))
                //BK 28.07.2016 or (ASeries.GetHorizAxis=GetHorizAxis);
               or (ASeries.GetHorizAxis.StartPosition=GetHorizAxis.StartPosition);
  end;
Comment 1 Bert Kreisel 2016-07-28 05:17:01 EDT
Created attachment 624 [details]
Some axes above other axes