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 - Choose the position in the horizontal axis for the mbSide MultiBar style to be drawn
Summary: Choose the position in the horizontal axis for the mbSide MultiBar style to b...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 18.160504
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-28 05:15 EDT by Bert Kreisel
Modified: 2018-02-23 08:16 EST (History)
1 user (show)

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


Attachments
Side by side (67.43 KB, image/jpeg)
2016-07-28 05:15 EDT, Bert Kreisel
Details
Some axes above other axes (51.41 KB, image/jpeg)
2016-07-28 05:17 EDT, Bert Kreisel
Details

Note You need to log in before you can comment on or make changes to this bug.
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