I would like to change the axis width in Graph Builder, but the <<Set Width message doesn't seem to work. My demo script:
Names Default To Here( 1 );
dt_class = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb_test = Graph Builder(
Size( 534, 454 ),
Show Control Panel( 0 ),
Variables(
X( :height ),
Y( :name, Order By( :height, Ascending, Order Statistic( "Mean" ) ) )
),
Elements( Bar( X, Y, Legend( 4 ) ) )
);
show( Report( gb_test )["Graph Builder",AxisBox(2)] << get width() );
Report( gb_test )["Graph Builder",AxisBox(2)] << set width( 200 );
show( Report( gb_test )["Graph Builder",AxisBox(2)] << get width() );
And the result:
Report(gb_test)["Graph Builder",AxisBox(2)] << get width() = 68;
Report(gb_test)["Graph Builder",AxisBox(2)] << get width() = 68;
Specifically it's the width of the area available for the y-axis labels.
The reason is I have a dataset with some very long labels and I want to reduce the default width so the labels wrap and make the chart cleaner.
I'm using JMP 17.2 on MacOS.
There's a similar question from 2014 which wasn't resolved: https://community.jmp.com/t5/Discussions/Changing-axis-box-width-in-graph-builder/td-p/9955