Page 1 of 1
Scrolling problems
Posted: Wed May 18, 2011 3:24 pm
by 10556174
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
Re: Scrolling problems
Posted: Fri May 20, 2011 1:25 am
by 16459366
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
Re: Scrolling problems
Posted: Fri May 20, 2011 11:38 am
by yeray
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;
Re: Scrolling problems
Posted: Fri May 20, 2011 12:02 pm
by 10556174
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:
- Before Scroll
- FirstGraph.jpg (78.17 KiB) Viewed 6644 times
After Scroll:
- After Scroll
- AfterScroll.jpg (64.54 KiB) Viewed 6649 times
Re: Scrolling problems
Posted: Fri May 20, 2011 1:45 pm
by yeray
Hello Miguel,
It still works fine for me here adding the following line to the TForm1.FormCreate in the example above:
I'm using TeeChart v2011.03. Are you using the latest TeeChart version?
Re: Scrolling problems
Posted: Fri May 20, 2011 4:16 pm
by 10556174
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
Re: Scrolling problems
Posted: Mon May 23, 2011 12:04 pm
by yeray
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?