Subscribe Bookmark RSS Feed

changing format of caption box in graph builder

Highlighted
vince_faller

Super User

Joined:

Mar 17, 2015

I'm trying to make the caption box in graph builder change to a different decimal format without changing the column properties.  

 

 

Names Default to Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");
dt << Graph Builder(
	Size( 570, 496 ),
	Variables( Group X( :sex ), Group Y( :age ), Color( :height ) ),
	Elements(
		Heatmap( Legend( 12 ) ),
		Caption Box( Legend( 4 ), Summary Statistic( "Mean" ), Format("Fixed Dec", 12, 2) )
	),
	SendToReport( Dispatch( {}, "400", LegendBox, {Set Title( "" )} ) )
);

 

Can't seem to get it. Anyone had luck with this?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson

Super User

Joined:

Jun 22, 2012

Solution

The labels are part of the frame boxes within the Mosaic plot, and they can be retrieved (Get), changed and replaced(Set);  Look in the Scripting Index under TextSeg for examples of Get and Set.

Jim
5 REPLIES
jb

Community Trekker

Joined:

Sep 23, 2015

Can you please notate which caption box?

 

image.png

vince_faller

Super User

Joined:

Mar 17, 2015

All of them.  

 

10-3-2017 12-58-24 PM.png

 

txnelson

Super User

Joined:

Jun 22, 2012

Solution

The labels are part of the frame boxes within the Mosaic plot, and they can be retrieved (Get), changed and replaced(Set);  Look in the Scripting Index under TextSeg for examples of Get and Set.

Jim
vince_faller

Super User

Joined:

Mar 17, 2015

Good to know.  Never used TextSeg.

That seems like more hastle (to find the actual means then appending them, making sure you get the right mean on the right framebox() than I think I'm willing to do vs the problem of changing the column properties.  

Still, would definitely work.  

jb

Community Trekker

Joined:

Sep 23, 2015

Ok, I understand the question now