I'm using GraphBuilder and want to modify the width of horizontally rotated Y Axis variable names. While I can Rotate Text in GB, changing the Set Wrap.... parameter doesn't appear to work as I expect it to. To demonstrate,
I opened Big Class data table and changed height and weight column names to the following:
"height column name that has been made longer"
"weight column name that has been made longer"
The following GB script is the result of a simple graph I created to illustrate the issue. While in GB the Set Wrap... parameter was set to 100 and the Extend this to other text boxes switch was selected. This parameter change isn't reflected in the resultant script and selecting any value less than 100 has no impact of width of Y Axis variable names.
Graph Builder(
Size( 1408, 513 ),
Show Control Panel( 0 ),
Graph Spacing( 3 ),
Variables(
X( :age ),
Y( :height column name that has been made longer ),
Y( :weight column name that has been made longer )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 4 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Y title", TextEditBox, {Rotate Text( "Horizontal" ) } ),
Dispatch( {}, "Y 1 title", TextEditBox, {Rotate Text( "Horizontal" ) } )
)
);
So, I'm wondering if this is a bug or if this is expected behavior?
Also, I'm curious if there is way to force word wrapping in the JSL GB code. I've tried the following and was unable to affect any change in the behavior of the Y axis word wrapping
Graph Builder(
Size( 1408, 513 ),
Show Control Panel( 0 ),
Graph Spacing( 3 ),
Variables(
X( :age ),
Y( :height column name that has been made longer ),
Y( :weight column name that has been made longer )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 4 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Y title", TextEditBox, {Rotate Text( "Horizontal" ), Set Wrap (50) } ),
Dispatch( {}, "Y 1 title", TextEditBox, {Rotate Text( "Horizontal" ), Set Wrap (50) } )
)
);