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 - Invalid axis tick label dimensions
Summary: Invalid axis tick label dimensions
Status: RESOLVED DUPLICATE of bug 2588
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 34.220203
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-15 08:53 EST by Andrew
Modified: 2023-03-15 06:31 EDT (History)
1 user (show)

See Also:
Chart Series: FastLine
Delphi / C++ Builder RAD IDE Version: RAD 11 Alexandria


Attachments
Screenshots (2.69 KB, application/x-zip-compressed)
2022-12-15 08:53 EST, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***