Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 124 - [TV52014344] Populating a contour series with the same Y value for all the items, ...
Summary: [TV52014344] Populating a contour series with the same Y value for all the it...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 17:41 EDT by yeray alonso
Modified: 2013-11-26 05:50 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2013-11-20 09:58:59 EST
Populating a contour series with the same Y value for all the items, takes a lot to calculate the levels.
See the attached project.
Here is the sugested code from the customer (TeeSurfa.pas):
Procedure TContourSeries.CreateAutoLevels;
//...
   tmp:=MandatoryValueList.Range/Max(1,NumLevels-1); // v8 changed to include max value
      if tmp=0 then tmp:=1;           //wdu
      tmpMin:=MandatoryValueList.MinValue;
      for t:=0 to NumLevels-1 do
      begin
        tmpUpTo:=tmpMin+tmp*(t+1); //wdu
//...
The code from the customer seems to solve the optimization problem, but we should investigate if that will break other customers applications. [created:2009-08-11T16:41:16.000+01:00 reported by:yeray@steema.com reported in version:9.0 (TeeChart VCL)]
Comment 1 david berneda 2013-11-26 05:50:23 EST
Fixed. The fix is done differently, and at another place in the code (a little bit "later" in the process of calculating contour levels).  

At TeeSurfa "PrepareLevels" procedure.