cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

GB Set Wrap for Y Axis Not Working Properly

terapin
Level VI

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) } )
)
);
1 ACCEPTED SOLUTION

Accepted Solutions
sseligman
Staff


Re: GB Set Wrap for Y Axis Not Working Properly

Hi terapin. The fact that the Set Wrap functionality in Graph Builder doesn't work as you expect is a bug. Our developers are aware of the issue and aim to address it in a future release. We apologize for the inconvenience.

View solution in original post

1 REPLY 1
sseligman
Staff


Re: GB Set Wrap for Y Axis Not Working Properly

Hi terapin. The fact that the Set Wrap functionality in Graph Builder doesn't work as you expect is a bug. Our developers are aware of the issue and aim to address it in a future release. We apologize for the inconvenience.