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 1627 - TAxisScrollBarTool messes up axis bounds
Summary: TAxisScrollBarTool messes up axis bounds
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 23.171221
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 11:54 EDT by Vsevolod V Gromov
Modified: 2018-11-14 08:35 EST (History)
3 users (show)

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


Attachments
TAxisScrollBarTool bug|feature testbed (16.55 KB, application/x-zip-compressed)
2016-09-08 11:54 EDT, Vsevolod V Gromov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod V Gromov 2016-09-08 11:54:58 EDT
Created attachment 640 [details]
TAxisScrollBarTool bug|feature testbed

TAxisScrollBarTool messe up axis bounds if minimum is not 0.
Attached is test project in C++ Builder Berlin 10.1
Comment 1 sandra pazos 2018-03-01 08:59:36 EST
Hello,
The simple code below reproduce the problem when the values are negative or different as 0.

procedure TForm1.FormCreate(Sender: TObject);
var i:Integer;
 ChartTool1: TAxisScrollBarTool;
begin

  Chart1.View3D := false;
  Series1 := TLineSeries.Create(Self);
  Chart1.AddSeries(Series1);
  ChartTool1 := TAxisScrollBarTool.Create(Self);
  Chart1.Tools.Add(ChartTool1);
  Chart1.Legend.Visible := false;
  Series1.XValues.Order :=loAscending;
for i := 5 {0} to 100 do
begin
  Series1.AddXY(i,Random(100));
 // Series1.AddXY(i-50,Random(100));
end;

ChartTool1.Axis := Chart1.Axes.Bottom;
ChartTool1.Arrows := true;
end;