Page 1 of 1

calcuate text width for Gant Series

Posted: Tue Jul 29, 2025 9:05 am
by 16599554
Hello

My problem are i try to calculate the text width of a Gant series.

Follow a demo of my program, to show my problem. At the moment, i have mutch free space between the right border and the end of the text. (see Attached file).

But i need the gap, because sometimes the text are mutch longer than at the example.

So my goal are to calculate the text with, and setup the margin automaticly.

May somebody has me a hint.

Thanks in advanced
Gregor

Re: calcuate text width for Gant Series

Posted: Fri Aug 01, 2025 7:41 am
by yeray
Hello,

This looks more a matter of calculating the width of the axis label than the gantt series.
I'd suggest you to take a look a the PlaceAxis method I implemented time ago (here). It should allow you to set the margin your axis labels require.

If you still find problems with it, please don't hesitate to arrange a simple example project we can run as-is to reproduce the situation here.