Bug with multiple axis and TChartScrollBar

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Walesch
Newbie
Newbie
Posts: 3
Joined: Thu Jul 26, 2012 12:00 am

Bug with multiple axis and TChartScrollBar

Post by Walesch » Tue Jul 23, 2013 1:32 pm

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
Attachments
Bug_TeeChart.jpg
Before and after going out of sync
Bug_TeeChart.jpg (74.44 KiB) Viewed 3946 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bug with multiple axis and TChartScrollBar

Post by Yeray » Wed Jul 24, 2013 11:21 am

Hi,

We use to recommend to use the standard ScrollBar instead of TChartScrollBar because it presents some problems.
I'm sorry for the inconvenience.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Walesch
Newbie
Newbie
Posts: 3
Joined: Thu Jul 26, 2012 12:00 am

Re: Bug with multiple axis and TChartScrollBar

Post by Walesch » Thu Jul 25, 2013 11:26 am

Hello,

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

Thank you,
Sylvain

Post Reply