‘Margin to axis %' in code?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
petec
Newbie
Newbie
Posts: 1
Joined: Thu Jan 14, 2021 12:00 am

‘Margin to axis %' in code?

Post by petec » Thu Jan 21, 2021 11:07 am

We're using the 3D TSurfaceSeries view and we're having problems where the left-axis labels overlap the axis itself in a number of views.

Using the Edit dialog at design time we can increase the 'Margin to axis %' from the default of 10 to 30 or so and it looks much better. However this doesn't get saved back to the DFM and we cannot find how to set this in code.

Can somebody point me in the right direction to the property I need to change?

Thanks

Pete

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

Re: ‘Margin to axis %' in code?

Post by Yeray » Wed Feb 03, 2021 1:13 pm

Hello Pete,

Yes, the property you are looking for is Texts.MarginToAxis. Ie:

Code: Select all

Chart1.Axes.Left.Texts.MarginToAxis:=100;
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