Page 1 of 1

grid lines and bottomaxis.position

Posted: Sun Dec 03, 2017 3:53 am
by 16579481
I have set the chart.bottomaxis.position to a small negative number so as to keep points at the bottom of the plot to not be on top of the bottom axis. That works well but if I turn grid lines on then the grid lines do not quite reach the bottom axis (they stop at where the axis would have been). Is there a way to ensure that the grid lines reach an axis when the position offset is not zero?

Thanks, Jim

Re: grid lines and bottomaxis.position

Posted: Mon Dec 04, 2017 7:33 am
by yeray
Hi Jim,

I'm not sure to understand the purpose of setting "chart.bottomaxis.position to a small negative number".
If you want to give more margin below the points being drawn you can set the Left axis MinimumOffset. Ie:

Code: Select all

  Chart1.Axes.Left.MinimumOffset:=10;

Re: grid lines and bottomaxis.position

Posted: Mon Dec 04, 2017 10:15 pm
by 16579481
ok, that works. Thanks!