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;
- 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