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 2398 - TCircularGauge does not draw the last point on the axis
Summary: TCircularGauge does not draw the last point on the axis
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 27.190530
Hardware: PC Windows
: Highest critical
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-15 13:54 EST by alexandre
Modified: 2021-01-20 08:59 EST (History)
2 users (show)

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


Attachments
Attachments shown in the description (87.86 KB, application/x-zip-compressed)
2021-01-15 13:54 EST, alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexandre 2021-01-15 13:54:16 EST
Created attachment 954 [details]
Attachments shown in the description

There is a problem with the VCLTee.TeeCircularGauge.TCircularGauge.DrawAxis method that, in some circumstances, causes the last point on the axis not to be drawn. This is due to the fact that most of the local variables are of type Single while the properties of the components are Double.

Attached is a DFM of a form containing only one TChart component with a TCircularGauge series simply configured to illustrate the problem.

To make the source of the problem even clearer, the attached image shows the most relevant settings.

Also attached is an image showing the problem.

------------------------------------------------------
procedure TCircularGauge.DrawAxis;
...
// Axis.Increment: Double = 2402.4325
// tmpStep: Single = 2402.4326171875
tmpStep := Axis.Increment;
------------------------------------------------------
Comment 1 yeray alonso 2021-01-18 08:14:24 EST
Declaring tmpValue, tmpStep and tmpStep2 as TAxisValue in TCircularGauge.DrawAxis method fixes the problem.
Comment 2 alexandre 2021-01-18 12:06:01 EST
(In reply to yeray alonso from comment #1)
> Declaring tmpValue, tmpStep and tmpStep2 as TAxisValue in
> TCircularGauge.DrawAxis method fixes the problem.

Hi Alonso,
In which version will this fix be available?
Thank you.
Comment 3 yeray alonso 2021-01-19 02:17:09 EST
This fix will be included in the next maintenance release (probably v2020.32).
I can't say when it will be published but if you want to tell me what IDE are you using I can prepare a beta version for you.
Comment 4 alexandre 2021-01-20 07:47:12 EST
(In reply to yeray alonso from comment #3)
> This fix will be included in the next maintenance release (probably
> v2020.32).
> I can't say when it will be published but if you want to tell me what IDE
> are you using I can prepare a beta version for you.

Hi Alonso,

Can you send a patch (maybe .dcu or .pas) or just the source code of the method so I can create a new class, inherit and override the method?

My version of Delphi: 10.3.1.
My version of Steema: TeeChart Pro v2019.27.190530.

Thank you.
Comment 5 yeray alonso 2021-01-20 08:59:40 EST
(In reply to alexandre from comment #4)
> Can you send a patch (maybe .dcu or .pas) or just the source code of the
> method so I can create a new class, inherit and override the method?

I've just sent it to your mail.