Page 1 of 1

Bug with multiple axis and TChartScrollBar

Posted: Tue Jul 23, 2013 1:32 pm
by 16563087
Hello,

Either I misunderstood something, or there's a bug when using more than 1 horizontal axis in a TChart and a TChartScrollBar linked to that chart : the axis don't stay synchronized when scrolling using the scrollbar.

Information to reproduce the bug:
- Place a TChart and a TChartScrollBar below it on a form.
- Link the scrollbar with the chart (Chart property)
- In the chart, add two 2D Line series and set the Horizontal Axis of the 1st one to Bottom, and the 2nd one to Top
- Initialize the series with sample data :

Code: Select all

procedure TForm2.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues(10);
  Series2.FillSampleValues(10);
end;
- Run, and perform a zoom (by drawing a rectangle with left mouse button)
- Scroll the chart using the scrollbar

Description of the bug:
The Top and Bottom axis, that where synchronized before the scrolling, now have an offset between their scales. See attached picture.

Is this behavior really the expect one? Or is there a way to keep these axis aligned when scrolling with the scrollbar?
(I'm using TeeChart Pro 2013 in Delphi XE3.)

Thanks in advance,
Sylvain

Re: Bug with multiple axis and TChartScrollBar

Posted: Wed Jul 24, 2013 11:21 am
by yeray
Hi,

We use to recommend to use the standard ScrollBar instead of TChartScrollBar because it presents some problems.
I'm sorry for the inconvenience.

Re: Bug with multiple axis and TChartScrollBar

Posted: Thu Jul 25, 2013 11:26 am
by 16563087
Hello,

I changed for a standard ScrollBar and wrote the code to bind it, and it works now.

Thank you,
Sylvain