Strange Bottom Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
danielchart
Newbie
Newbie
Posts: 11
Joined: Mon Jul 19, 2010 12:00 am

Strange Bottom Axis

Post by danielchart » Thu Sep 23, 2010 8:56 am

Hi:

After install Teechart v2010.01 Prelease, the bottom axis of teechar become very strange.
the bottom axis's label is overloped.
as attached file
Teechart 7.gif:original chart
Teechart v2010.01 VCL non-stable prelease.gif: after install Teechart v2010.01 Prelease.

Best Regards,

Daniel
Attachments
TeeChart v2010.01 VCL non-stable pre-releas.gif
TeeChart v2010.01 VCL non-stable pre-releas.gif (18.18 KiB) Viewed 22632 times
Teechart 7.gif
Teechart 7.gif (10.42 KiB) Viewed 22604 times

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

Re: Strange Bottom Axis

Post by Yeray » Thu Sep 23, 2010 2:42 pm

Hi Daniel,

Try changing the bottom axis label style.
If you still have problems with it, please, try to arrange a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
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

danielchart
Newbie
Newbie
Posts: 11
Joined: Mon Jul 19, 2010 12:00 am

Re: Strange Bottom Axis

Post by danielchart » Mon Sep 27, 2010 11:45 pm

Hi Yeray:

After change the label of bottom axis from 'Auto' to 'Text', I still have the problem.
Sample program as attached.

Daniel
Attachments
Draw.zip
(425.22 KiB) Downloaded 881 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Strange Bottom Axis

Post by Narcís » Wed Sep 29, 2010 9:49 am

Hi Daniel,

Here's a screen-shot of what I get using our current 2010 sources:
Draw2010_01.jpg
Draw2010_01.jpg (184.69 KiB) Viewed 22529 times
Is this what you get? If not, you may expect the issue to be fixed for next maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

danielchart
Newbie
Newbie
Posts: 11
Joined: Mon Jul 19, 2010 12:00 am

Re: Strange Bottom Axis

Post by danielchart » Wed Sep 29, 2010 2:58 pm

Hi:

Teechart VCL v2001.01 is really unstable.
Lables of bottom axis overlaps.
Image and sample program is attached.
When will stable maintance release launch?

Best Regards,

Daniel
Attachments
Draw.zip
(423.75 KiB) Downloaded 880 times
PS0058.jpg
PS0058.jpg (79.3 KiB) Viewed 22524 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Strange Bottom Axis

Post by Sandra » Thu Sep 30, 2010 11:25 am

Hello Daniel,

I suggest you change labels alignment of your bottom axis, so it are not overlapping. You can use next line of code for change it:

Code: Select all

  Chart1.Axes.Bottom.LabelsAngle:=90;
I have checked it with last version TeeChart VCL and works for me.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Strange Bottom Axis

Post by Narcís » Thu Sep 30, 2010 11:36 am

Hello Daniel,

Besides Sandra's workaround suggestion I have added this issue to the bug list to be investigated with ID. number TV52015179. TeeChart tries to plot as many labels as possible in the axes according to their Increment property and not allowing labels to overlap. However, when setting the axis to display text labels for each point they may not fit in the axis space. Populating series with x datetime values would help solving this issue too as bottom axis labels would be calculated automatically, so that you can modify your project like this:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
    StartDate: TDateTime;
begin
  LineSeries2.XValues.DateTime:=True;
  StartDate:=EncodeDate(2004, 01, 02);

  for i:=0 to LineSeries2.Count-1 do
  begin
    LineSeries2.XValues[i]:=StartDate + i;
    Series2.XValues[i]:=StartDate + i;
    Series17.XValues[i]:=StartDate + i;
  end;

  Chart3.Axes.Bottom.LabelStyle:=talValue;
end;
Another workaround could be using LabelsSeparation:

Code: Select all

  Chart3.Axes.Bottom.LabelsSeparation:=101;
We are finalising some details and we hope to have the stable release ready very soon.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

danielchart
Newbie
Newbie
Posts: 11
Joined: Mon Jul 19, 2010 12:00 am

Re: Strange Bottom Axis

Post by danielchart » Sun Oct 17, 2010 3:06 pm

Hi:

I have upgraded to the latest version of TeeChart VCL.
TeeChar Version:October 05, 2010 Build 2010.01.11004
Delphi 7
Window 7 64 bit.

I have atached a sample program.
If you click one series the chart works fine.
if you click two series you can see the label of bottom axis overlape.

Daniel
Attachments
Sample.zip
(404.7 KiB) Downloaded 814 times
Two Series.jpg
Two Series.jpg (103.05 KiB) Viewed 22441 times
One Series.jpg
One Series.jpg (84.46 KiB) Viewed 22431 times

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

Re: Strange Bottom Axis

Post by Yeray » Tue Oct 19, 2010 8:58 am

Hi Daniel,

It looks to be the same. I've seen that it works in v2010.00 and overlaps in v2010.01. I've incremented the ticket priority (TV52015179).
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

danielchart
Newbie
Newbie
Posts: 11
Joined: Mon Jul 19, 2010 12:00 am

Re: Strange Bottom Axis

Post by danielchart » Fri Oct 29, 2010 4:42 pm

Hi:

It is really a serious problem.
When will you fix the problem?

Daniel

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Strange Bottom Axis

Post by Narcís » Mon Nov 01, 2010 5:57 pm

Hi Daniel,

This is a high-priority issue in the defect list but hasn't been fixed yet. At this stage I can't commit to a release date. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's fixed on them.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Drew
Newbie
Newbie
Posts: 5
Joined: Tue Nov 30, 2010 12:00 am

Re: Strange Bottom Axis

Post by Drew » Mon Jan 10, 2011 5:31 pm

Hi Narcis,

As discussed on the http://www.teechart.net/support/viewtop ... 526#p51526 thread I'm commenting on this thread from now on.

I've tried the BottomAxis.LabelsSeparation workaround suggestion you suggested to Daniel, however all this did was created large gaps between sections of overlapping labels.

We've found another workaround using the OnDrawLabel event handler which works for the labels, however its not brilliant if you have tick marks on the axis as it still draws multiple tick marks as you add series. See attached code.

Drew
Attachments
AxisIssue.zip
(88.1 KiB) Downloaded 897 times

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

Re: Strange Bottom Axis

Post by Yeray » Wed Jan 12, 2011 4:28 pm

Hi Drew,

Thanks for sharing the workaround proposal.
I can only think on hiding the ticks and minorticks completely as alternative for those who don't need them.

Code: Select all

  Chart1.Axes.Bottom.MinorTicks.Visible:=false;
  Chart1.Axes.Bottom.Ticks.Visible:=false;
We'll be back here when we'll find a solution for the bug TV52015179.
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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Strange Bottom Axis

Post by Narcís » Mon Jan 17, 2011 3:41 pm

Hello,

Just wanted to let you know that we have fixed TV52015179 the next maintenance release.

Daniel, this is the bug in Sample.zip. We found that the bug in Draw.zip is somewhat different and we are currently working on fixing this one too.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Strange Bottom Axis

Post by Narcís » Wed Feb 02, 2011 10:53 am

Hi Daniel,

After investigating the issue in Draw.zip further we came to the conclusion that this is not a bug. We found that in your project you had set bottom axis LabelsSeparation property to zero, thus no label anti-overlap calculation is performed. Setting LabelsSeparation to default value (10%) works fine:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3.Axes.Bottom.LabelsSeparation:=10;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply