Scrolling problems

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mhenley
Newbie
Newbie
Posts: 3
Joined: Mon May 17, 2010 12:00 am

Scrolling problems

Post by mhenley » Wed May 18, 2011 3:24 pm

I have the following problem:

A graph with only one serie: a bar serie. This series has a lot of bars that needs to be scrolled.
When the series renders for the first time: the space beetween the bars is fine.
When I do the scrool using the following code:

chart1.BottomAxis.Scrool(1);

the space beetween the bars gets rid ( I mean: the bars are without spaces beetween adjacents bars).
This is a bad looking for the end user. Please help.

Thanks in advance,
Miguel Henley

Mark
Newbie
Newbie
Posts: 5
Joined: Wed May 18, 2011 12:00 am

Re: Scrolling problems

Post by Mark » Fri May 20, 2011 1:25 am

Hi Miguel

Not sure if this is what you mean. I've been scrolling my charts programatically. I use the following axes method:

Code: Select all

Chart1.Axes.Bottom.SetMinMax(1, 50);
If you're using datetimes for your x axis then the min/max needs to be datetimes of course. i.e. it's not an index it's the actual x values.

Hope that helps.

Regards
Mark

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

Re: Scrolling problems

Post by Yeray » Fri May 20, 2011 11:38 am

Hello Miguel,

I don't see any problem or any strange behavior with the code below. Could you please modify it or arrange a simple example project we can run as-is to reproduce the problem here?

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  Chart1.AddSeries(TBarSeries).FillSampleValues(100);
  Chart1[0].Marks.Visible:=false;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.Scroll(1);
end;
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

mhenley
Newbie
Newbie
Posts: 3
Joined: Mon May 17, 2010 12:00 am

Re: Scrolling problems

Post by mhenley » Fri May 20, 2011 12:02 pm

Hello,
If you setup the property Points per Page you will see the problem.

The first image shows the graph when the application fires up (as suggested by your example).
The second image shows the graph after I press the Scroll button that trigger Chart1.Axes.Bottom.Scroll(1);
Please, see the images below:


Before Scroll:
FirstGraph.jpg
Before Scroll
FirstGraph.jpg (78.17 KiB) Viewed 6653 times

After Scroll:
AfterScroll.jpg
After Scroll
AfterScroll.jpg (64.54 KiB) Viewed 6658 times

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

Re: Scrolling problems

Post by Yeray » Fri May 20, 2011 1:45 pm

Hello Miguel,

It still works fine for me here adding the following line to the TForm1.FormCreate in the example above:

Code: Select all

Chart1.MaxPointsPerPage:=20;
I'm using TeeChart v2011.03. Are you using the latest TeeChart version?
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

mhenley
Newbie
Newbie
Posts: 3
Joined: Mon May 17, 2010 12:00 am

Re: Scrolling problems

Post by mhenley » Fri May 20, 2011 4:16 pm

I am using TeeChart version 8.05.
This is the license that I have for now.

Please, test it in version 8 - so you can see the problem.

Regards,
Miguel Henley

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

Re: Scrolling problems

Post by Yeray » Mon May 23, 2011 12:04 pm

Hello Miguel,

I've been able to reproduce it with v8.05 and v8.06 but it's not reproducible anymore for me here from v8.07.
Could you please try the v8.07 or the v8.08?
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

Post Reply