![]() | Steema Issues DatabaseNote: 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. |
| Summary: | TAxisScrollBarTool messes up axis bounds | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | Vsevolod V Gromov <gromov.vsevolod> |
| Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | gromov.vsevolod, sandra, yeray |
| Priority: | High | ||
| Version: | 23.171221 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | TAxisScrollBarTool bug|feature testbed | ||
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;
|
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