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 2577

Summary: Invalid axis tick label dimensions
Product: VCL TeeChart Reporter: Andrew <bj.notifications>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED DUPLICATE    
Severity: normal CC: yeray
Priority: ---    
Version: 34.220203   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: FastLine Delphi / C++ Builder RAD IDE Version: RAD 11 Alexandria
Attachments: Screenshots

Description Andrew 2022-12-15 08:53:23 EST
Created attachment 1028 [details]
Screenshots

We have a series that has the same Y values of all points and have a long fractional part.

The chart for calculating the size of the axis's labels uses rounding to some value.
In the case of equal values, rounding up to (1) occurs, and for the value of (12.345) the size of the label "12" instead of "12.345" will be calculated.

We found in the code that causes such behavior, and there is already a comment with a possible solution:

VCLTee.TeEngine:4347 (InternalCalcLabelsIncrement)

if IRangeZero then
         result:=1 // <-- TODO: What can we use instead of 1? A magnitude of Min?

Please check this issue

The second attachment file is a screenshot after local fix as proposed in comment
Comment 1 yeray alonso 2023-03-15 06:31:52 EDT

*** This bug has been marked as a duplicate of bug 2588 ***