This is my old school way of handling this:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = dt << Treemap( Categories( :city ), Sizes( :POP ), Coloring( :CO ) );
treemapGBPref = Get Platform Preference( treemap( "Use Graph Builder" ) );
prefVal = Arg( Arg( Arg( treemapGBPref, 1 ) ) );
mx = 20;
mn = 1;
report = obj << report;
Eval(
Parse(
"report << Dispatch(
{},
\!"400\!",
ScaleBox,
{Legend Model(
1,
Properties(
0,
{gradient( {Scale Values( ["
|| Char( mn ) || " " || Char( mx ) || "] )} )},
Item ID( \!"CO\!", 1 )
)
)}
);"
)
);
When all else fails, this method always works. You need to learn it and put it into your tool box.
Jim