Page 1 of 1
Strange Bottom Axis
Posted: Thu Sep 23, 2010 8:56 am
by 16556615
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
Re: Strange Bottom Axis
Posted: Thu Sep 23, 2010 2:42 pm
by yeray
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.
Re: Strange Bottom Axis
Posted: Mon Sep 27, 2010 11:45 pm
by 16556615
Hi Yeray:
After change the label of bottom axis from 'Auto' to 'Text', I still have the problem.
Sample program as attached.
Daniel
Re: Strange Bottom Axis
Posted: Wed Sep 29, 2010 9:49 am
by narcis
Hi Daniel,
Here's a screen-shot of what I get using our current 2010 sources:
- Draw2010_01.jpg (184.69 KiB) Viewed 22817 times
Is this what you get? If not, you may expect the issue to be fixed for next maintenance release.
Re: Strange Bottom Axis
Posted: Wed Sep 29, 2010 2:58 pm
by 16556615
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
Re: Strange Bottom Axis
Posted: Thu Sep 30, 2010 11:25 am
by 10050769
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,
Re: Strange Bottom Axis
Posted: Thu Sep 30, 2010 11:36 am
by narcis
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.
Re: Strange Bottom Axis
Posted: Sun Oct 17, 2010 3:06 pm
by 16556615
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
Re: Strange Bottom Axis
Posted: Tue Oct 19, 2010 8:58 am
by yeray
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).
Re: Strange Bottom Axis
Posted: Fri Oct 29, 2010 4:42 pm
by 16556615
Hi:
It is really a serious problem.
When will you fix the problem?
Daniel
Re: Strange Bottom Axis
Posted: Mon Nov 01, 2010 5:57 pm
by narcis
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.
Re: Strange Bottom Axis
Posted: Mon Jan 10, 2011 5:31 pm
by 16457995
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
Re: Strange Bottom Axis
Posted: Wed Jan 12, 2011 4:28 pm
by yeray
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.
Re: Strange Bottom Axis
Posted: Mon Jan 17, 2011 3:41 pm
by narcis
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.
Re: Strange Bottom Axis
Posted: Wed Feb 02, 2011 10:53 am
by narcis
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;