Chart title placement when multiple top axes

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Errol
Newbie
Newbie
Posts: 35
Joined: Mon Jul 02, 2018 12:00 am

Chart title placement when multiple top axes

Post by Errol » Mon Oct 15, 2018 9:02 pm

Good morning
I have a chart that uses two top axes, TopAxis and CustomAxes[1]. When data is plotted against TopAxis, the chart title is correctly placed above the axis labels and axis title. However, when data is plotted only against CustomAxes[1], the chart title is placed just above the top axis, and overwrites the labels of CustomAxes[1].
How can I easily place the Chart Title above the CustomAxes[1] title. Note that if data is not plotted against either top axis, I would expect the chart title to be placed just above the chart axis.
I look forward to your comments
Best regards
Errol

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

Re: Chart title placement when multiple top axes

Post by Yeray » Thu Oct 18, 2018 11:38 am

Hello,

You can set the custom axis ResizeChart property to True and then the ChartRect will be "inflated":

Code: Select all

  Chart1.CustomAxes[1].ResizeChart:=True;
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