Pie Chart Legend bug or my missing call?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Yeray
Site Admin
Site Admin
Posts: 9709
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie Chart Legend bug or my missing call?

Post by Yeray » Wed Jun 25, 2025 7:34 am

Hello,

Sorry for the delayed reply here.
I've observed there seems to be a problem with the Chart Title alignment. I'm investigating it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9709
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie Chart Legend bug or my missing call?

Post by Yeray » Wed Jun 25, 2025 2:06 pm

Hello John,
Yeray wrote:
Wed Jun 25, 2025 7:34 am
I've observed there seems to be a problem with the Chart Title alignment. I'm investigating it.
I've identified it (#2770) and I've also fixed it.
Here the diff:

Code: Select all

--- a/Chart.pas
+++ b/Chart.pas
@@ -2375,7 +2375,7 @@ Begin
       else
          tmpVPos:={$IFDEF FMX}Round{$ENDIF}(ParentChart.ChartRect.Bottom-Height-tmpHalfBorder);
 
-      tmpLeft:=ParentChart.{$IFDEF FMX}Position.X{$ELSE}Left{$ENDIF};
+      tmpLeft:=ParentChart.ChartBounds.Left;
 
       if AdjustFrame then
       begin
-- 
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9709
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie Chart Legend bug or my missing call?

Post by Yeray » Wed Jun 25, 2025 2:10 pm

I've added a Pie to your sample project and I've set it to 2D.
This is how the pdf looks for me here:
yWt17naeFB.png
yWt17naeFB.png (55.89 KiB) Viewed 575 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply