BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TChart freezing when y values less than zero are added

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Clive
Guest





PostPosted: Tue Mar 08, 2005 3:27 pm    Post subject: TChart freezing when y values less than zero are added Reply with quote



Hi,

I'm experiencing a strange problem when adding y values that are less
than 1 to a bar series.

This is the code I use to create and initialise the series:
fSpectrumSeries := TBarSeries.Create(Self);
with fSpectrumSeries do
begin
BarPen.Visible := False;
CustomBarWidth := 6;
Marks.Visible := False;
Multibar := mbNone;
ParentChart := fAmplitudeSpectrum;
SideMargins := False;
end;

This is the code I use to populate my series with data:
fAmplitudeSpectrum.Series[0].AddXY(1, 0.0158);
fAmplitudeSpectrum.Series[0].AddXY(2, 0.0024);
fAmplitudeSpectrum.Series[0].AddXY(3, 0.00078);

If I have fAmplitudeSpectrum.LeftAxis.Automatic set to True then the
program freezes at runtime and the panel containing fAmplitudeSpectrum
simply shows whatever is behind it i.e. it looks like it hasn't painted
the TChart at all.

If I precede the population of the values above by the following line:
fAmplitudeSpectrum.Series[0].AddNullXY(1, 1, '');
then it works fine, except that the y axis maximum is now 1 and
consequently the small values I added are barely visible because of the
scaling.

Therefore, I tried setting fAmplitudeSpectrum.LeftAxis.Automatic to
False and I manually set the LeftAxis maximum to the highest value
entered multiplied by 10%.
fAmplitudeSpectrum.LeftAxis.Maximum := highestMagnitude * 1.1;
However, this also caused a freeze as above.

Has anyone experience any problems like this before?
Does anyone know of a fix/solution/workaround?

This has been giving me a headache for a while now so your help would
be VERY MUCH appreciated!!!

Back to top
Clive
Guest





PostPosted: Mon Mar 14, 2005 9:50 am    Post subject: Re: TChart freezing when y values less than zero are added Reply with quote



Does no-one have any ideas about this then?

Back to top
Robert Dede
Guest





PostPosted: Fri Mar 18, 2005 1:44 pm    Post subject: Re: TChart freezing when y values less than zero are added Reply with quote



Hello,

Sorry, not sure about your current charting problem, but if your problems
don't get answered, you may want to check out www.gigasoft.com. Our
charting is known for its stability, features, attention to rendering
detail, and customer support and service. Native VCLs included as well as
WinForm, WebForm, ActiveX, and pure DLL interfaces.

best regards,

Robert Dede
Gigasoft, Inc.



"Clive" <clive.wickham (AT) era (DOT) co.uk> wrote

Quote:
Does no-one have any ideas about this then?




Back to top
Chris Ireland
Guest





PostPosted: Mon Mar 21, 2005 8:38 am    Post subject: Re: TChart freezing when y values less than zero are added Reply with quote

Clive wrote:
Quote:

This has been giving me a headache for a while now so your help would
be VERY MUCH appreciated!!!

Your code runs without error using the latest available version of
TeeChart for Delphi, TeeChart 7.04.

Which version of TeeChart are you using and in which version of Delphi?

Best Regards,

Christopher Ireland
www.steema.com


Back to top
Clive
Guest





PostPosted: Tue Mar 29, 2005 8:25 am    Post subject: Re: TChart freezing when y values less than zero are added Reply with quote

Apologies for not supplying the relevant information earlier. I am
using Delphi 6 (update pack 2) with TeeChart Standard 4.04.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.