![]() | Steema Issues DatabaseNote: 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. |
| Summary: | [TV52014344] Populating a contour series with the same Y value for all the items, ... | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | david |
| Priority: | High | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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. |
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)]