cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
sanqub
Level III

Customisation in the graph builder?

Dear JMP users,

 

I am using graph builder to present my data in an interactive way. Suppose I use big class data, I am looking for summation of total weight of male and female separately. This should update as I interact with the height. I have used caption box now. I have tried using script as below. But can this be made better and more presentable?. Any help or idea is would be really great.

Graph Builder(
	Size( 1121, 922 ),
	Variables( X( :weight ), Group X( :sex ), Overlay( :sex ) ),
	Elements(
		Histogram( X, Legend( 4 ) ),
		Caption Box( X, Legend( 5 ), Summary Statistic( "Sum" ) )
	),
	Local Data Filter(
		Add Filter( columns( :height ), Where( :height >= 51 & :height <= 70 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Min( 60 ), Max( 180 ), Inc( 200 ), Minor Ticks( 0 )}
		)
	)
)

 

Thanks

 

San

1 REPLY 1
txnelson
Super User

Re: Customisation in the graph builder?

San,

Nice job.  The only thing that I might do is to change the Caption Boxes to make them a little more visable.  You can easily do this by Right Clicking on the graph, and then selecting "Customize...".

If you select the "Text" entry, you can change the font, color, size, etc.  You have to do it once for each side of the graph.

caption.PNG

You can then Save the Script and it will give you the JSL that changed the Caption Boxes

Graph Builder(
	Size( 1172, 872 ),
	Variables( X( :weight ), Group X( :sex ), Overlay( :sex ) ),
	Elements(
		Histogram( X, Legend( 4 ) ),
		Caption Box( X, Legend( 5 ), Summary Statistic( "Sum" ) )
	),
	Local Data Filter(
		Add Filter( columns( :height ), Where( :height >= 51 & :height <= 70 ) )
	),
	SendToReport(
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Min( 60 ), Max( 180 ), Inc( 200 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg( TextSeg( 1 ), {Font( "Showcard Gothic", 14, "Bold" )} )}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox( 2 ),
			{DispatchSeg( TextSeg( 1 ), {Font( "Segoe UI", 14, "Bold" )} )}
		)
	)
);
Jim