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 2494 - Stacked Bars with mixed negative and positive values give wrong Clicked results
Summary: Stacked Bars with mixed negative and positive values give wrong Clicked results
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 33.210915
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-20 10:38 EST by yeray alonso
Modified: 2022-09-19 03:51 EDT (History)
1 user (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 yeray alonso 2021-12-20 10:38:53 EST
Example:

procedure TForm1.ClickStackedBars;
var i: Integer;
begin
  Chart1.View3D:=True;
  Chart1.Legend.Show;

  for i:=0 to 2 do
  begin
    with TBarSeries(Chart1.AddSeries(TBarSeries)) do
    begin
      MultiBar:=mbStacked;
      Marks.Hide;
      if i=0 then
         AddArray([20,-10,30])
      else
      if i=1 then
         AddArray([-10,20,-50])
      else
         AddArray([20,10,10]);
    end;
  end;

  Chart1[0].Title:='Blue';
  Chart1[1].Title:='Orange';
  Chart1[2].Title:='Red';

  TMarksTipTool(Chart1.Tools.Add(TMarksTipTool)).Style:=smsSeriesTitle;
end;