Page 1 of 1

‘Margin to axis %' in code?

Posted: Thu Jan 21, 2021 11:07 am
by 16590435
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

Re: ‘Margin to axis %' in code?

Posted: Wed Feb 03, 2021 1:13 pm
by yeray
Hello Pete,

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

Code: Select all

Chart1.Axes.Left.Texts.MarginToAxis:=100;