cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Kenobi
Level III

Getting rid of footnotes at end of graphbuilder

Hi,

 

I am working on the Cities dataset to build a journal of GraphBuilder objects. I have excluded a few rows, and it is clearly visible at the bottom of the graph (as shown in the image below) as "where 4 rows excluded". This has been built interactively, and I can remove the footnote manually. But since I am using a script, I want to incorporate a line in my code that does not show this footnote. Is there a way possible to achieve this?

 

Thank you.

 

Kenobi_1-1689604243698.png

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XII

Re: Getting rid of footnotes at end of graphbuilder

Yes, just include 

Show Footer( 0 ),

in the GraphBuilder script, like Show Legend(0).

If you found a way to apply the settings interactively via mouse clicks, you can then save the script via

hogi_0-1689631358289.png

and check which JSL command is used.

By the way: mouse clicks ...
there are thousands of easter eggs hiding:
CTRL/Alt/Shift + click/select/double click/right click 

 

 

View solution in original post

7 REPLIES 7
jthi
Super User

Re: Getting rid of footnotes at end of graphbuilder

I usually use XPath when hiding that text box

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << Select Rows([1,2]) << Hide and Exclude(1) << Clear Select;

gb = dt << Run Script("Graph Builder Line and Bar Charts");

wait(2); // For demo purposes
where_tb = (gb << Top Parent) << XPath("//TextBox[contains(text(), 'Where(')]");
where_tb << Visibility("Collapse");
-Jarmo
Kenobi
Level III

Re: Getting rid of footnotes at end of graphbuilder

Thank you for your reply.

 

Would it be possible to incorporate it in this script? I am trying to append GB objects in ListBox.

 

Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables( X( :Region ), Y( :OZONE ) ),
	Elements( Points( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			OutlineBox,
			{Set Title( "OZONE vs Region" ), Image Export Display( Normal )}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Marker Size( 5 ), Marker Drawing Mode( "Normal" )}
		)
	)
);
mmarchandTSI
Level V

Re: Getting rid of footnotes at end of graphbuilder

(gb << Report)["Graph Builder", Text Box( 5 )] << Visibility( "Hidden" )

With "gb" being your Graph Builder platform, this seems to work.  I am not positive that it is always number 5, though.

hogi
Level XII

Re: Getting rid of footnotes at end of graphbuilder

If you don't need the Footer at all, you can also disable it in the Preferences :

hogi_0-1689620674330.png

 

Kenobi
Level III

Re: Getting rid of footnotes at end of graphbuilder

Thank you for your reply. But I want to incorporate this as a functionality in an add-in that I am creating. It will be used by other team members, hence need a script to allow this.

hogi
Level XII

Re: Getting rid of footnotes at end of graphbuilder

Yes, just include 

Show Footer( 0 ),

in the GraphBuilder script, like Show Legend(0).

If you found a way to apply the settings interactively via mouse clicks, you can then save the script via

hogi_0-1689631358289.png

and check which JSL command is used.

By the way: mouse clicks ...
there are thousands of easter eggs hiding:
CTRL/Alt/Shift + click/select/double click/right click 

 

 

Kenobi
Level III

Re: Getting rid of footnotes at end of graphbuilder

Thank you very much. This works like a charm. Also, appreciate the link to shortcuts.