BookmarkSubscribe
Choose Language Hide Translation Bar
vince_faller
Super User

changing format of caption box in graph builder

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?

Vince Faller - Predictum
0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: changing format of caption box in graph builder

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 5
jb
jb
Community Trekker

Re: changing format of caption box in graph builder

Can you please notate which caption box?

 

image.png

0 Kudos
vince_faller
Super User

Re: changing format of caption box in graph builder

All of them.  

 

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

 

Vince Faller - Predictum
0 Kudos
txnelson
Super User

Re: changing format of caption box in graph builder

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

Re: changing format of caption box in graph builder

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.  

Vince Faller - Predictum
0 Kudos
jb
jb
Community Trekker

Re: changing format of caption box in graph builder

Ok, I understand the question now

 

0 Kudos