Min Separation Does NOt Work

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
cheaps
Newbie
Newbie
Posts: 17
Joined: Thu Mar 25, 2004 5:00 am
Location: Boston MA
Contact:

Min Separation Does NOt Work

Post by cheaps » Sat Nov 06, 2010 12:52 pm

I have recompiled my app using the new TeeeChart 2010 (was using v8 before with no problems), but this new version seems a bit buggy. Two problems found so far:

1. Some area charts crash when the mouse is moved over them. I traced the crash to the TChartSeries.GetMarkValue function. The valueindex paramter was -1. I hacked the code as follows but there must be a wider problem:

begin
if ValueIndex >= 0 then //hack
result:=MandatoryValueList.Value[ValueIndex]
else
result := 0;
end;


2. Also in area charts the min separation property for an axis no longer seems to be honored (at least in some situations). My bottom axis text labels are overlapping when I set the min separation to 5%. I tried editing the setting to other values using the chart editor but they were not honored.

For now I have given up on the new 2010 version and gone back to v8. I would appreciate any advice/fixes.

Thanks

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

Re: Min Separation Does NOt Work

Post by Narcís » Mon Nov 08, 2010 9:10 am

Hi cheaps,
1. Some area charts crash when the mouse is moved over them. I traced the crash to the TChartSeries.GetMarkValue function. The valueindex paramter was -1.
I'm not able to reproduce the problem. Can you please attach a simple example project we can run "as-is" to reproduce the issue here?
2. Also in area charts the min separation property for an axis no longer seems to be honored (at least in some situations). My bottom axis text labels are overlapping when I set the min separation to 5%. I tried editing the setting to other values using the chart editor but they were not honored.
Could you also attach an example for this one?

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

cheaps
Newbie
Newbie
Posts: 17
Joined: Thu Mar 25, 2004 5:00 am
Location: Boston MA
Contact:

Re: Min Separation Does NOt Work

Post by cheaps » Wed Nov 10, 2010 8:28 pm

Will do (may take me a few days though) - thanks!

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

Re: Min Separation Does NOt Work

Post by Drew » Thu Dec 23, 2010 1:16 pm

I'm having similar problems. The separation appears to be fine when there is one series on the chart, however when you add a second, third, fourth series and so on, the separation disappears as multiple labels are placed on the axis.

The labels for each series are absolutely identical and are weekly dates, but everytime you add another series the spacing gets worse and worse as it displays more labels. Take a look at the attached image file where you can see the axis labelling changing as each series is added.

I'm having exactly the same problem with every chart that includes multiple series. We have made no changes to our code which worked perfectly well in v8 and have just upgraded to v2010 as we're now using Delphi XE.

Any advice greatly welcome?
Attachments
TChartAxisLabellingIssue.png
Same chart with a series added each time. Look at the bottom axis labels.
TChartAxisLabellingIssue.png (42.11 KiB) Viewed 14867 times

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

Re: Min Separation Does NOt Work

Post by Narcís » Fri Dec 24, 2010 12:18 pm

Hi Drew,

Can you please attach a simple example project we can run "as-is" to reproduce the issue here?

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: Min Separation Does NOt Work

Post by Drew » Tue Jan 04, 2011 4:17 pm

Thanks Narcis, I've uploaded the source for a simple app that adds a series of 300 random numbers each time you check one of the series in the list. You will notice that as you check each series on the bottom axis adds more and more date labels to the axis completely ignoring the min separation. This wasn't a problem with v8 and has only been introduced with v2010.

Look forward to your response!

Drew
Attachments
AxisIssue.zip
(87.97 KiB) Downloaded 768 times

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

Re: Min Separation Does NOt Work

Post by Narcís » Mon Jan 10, 2011 2:48 pm

Hi Drew,

Thank you very much for the example project. I think this issue is related to TV52015179.
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: Min Separation Does NOt Work

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

Thanks Narcis, I will keep track of the TV52015179 thread from here on. It does sound like the same issue so I will post any additional comments on that thread.

Drew

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

Re: Min Separation Does NOt Work

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

Hi Drew,

I just wanted to let you know that we have fixed TV52015179 for the 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

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

Re: Min Separation Does NOt Work

Post by Drew » Mon Jan 17, 2011 4:04 pm

Thanks Narcis, look forward to the release.

Post Reply