<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use Graph boxes in the JMP Application builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51381#M29126</link>
    <description>&lt;P&gt;The typical method used for adding a graph into a JMP Application, is to first interactively create the required graph or plot using one of the JMP Platforms(i.e. Fit Y by X, Distributions, etc.) and then open the Application Builder, where you then will see the graph or plot, and you then can drag it into your application.&amp;nbsp; JMP will then provide the JSL into the application.&amp;nbsp; The documentation on the Application Builder shows examples on how this works.&amp;nbsp; See&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;and then scan for Application Builder&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 14:07:26 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-02-15T14:07:26Z</dc:date>
    <item>
      <title>How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51359#M29123</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to JMP. I am building a JMP application to read data from a JMP table and plot the data (Column 1 vs Column 2) in the graph box available in the JMP application. I was able to read the data from the table but not able to plot the graph in th graph box. I think I am not using proper script for graph box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one explain how to display graph in graph box for my use case?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 07:08:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51359#M29123</guid>
      <dc:creator>Saravana</dc:creator>
      <dc:date>2018-02-15T07:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51381#M29126</link>
      <description>&lt;P&gt;The typical method used for adding a graph into a JMP Application, is to first interactively create the required graph or plot using one of the JMP Platforms(i.e. Fit Y by X, Distributions, etc.) and then open the Application Builder, where you then will see the graph or plot, and you then can drag it into your application.&amp;nbsp; JMP will then provide the JSL into the application.&amp;nbsp; The documentation on the Application Builder shows examples on how this works.&amp;nbsp; See&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;and then scan for Application Builder&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 14:07:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51381#M29126</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-15T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51402#M29138</link>
      <description>&lt;P&gt;I want to add a second to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;'s comment. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Application Builder is designed to allow you to leverage existing capabilities in JMP. Fun Fact - Dashboard Builder is just a skin sitting on top of Application Builder, so all the drag and drop report generating you can do in Dashboard Builder can be done in Application&amp;nbsp;Builder too. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you need to do something super specific, I'd just generate the plot I want in Graph Builder, then open up my Application Builder Source File. &amp;nbsp;The Graph Builder should show up in the left-hand pane towards the top. &amp;nbsp;Just drag it to where you want it in the GUI and you're off to the races. &amp;nbsp;You'll still need to parameterize the code but that's a lot easier than trying to hack a custom graph from scratch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 17:34:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51402#M29138</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2018-02-15T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51411#M29145</link>
      <description>&lt;P&gt;Learning to script graph boxes has a bit of learning curve. You find a pretty good guide in the Scripting Guide (Help &amp;gt; Books &amp;gt; Scripting Guide).&amp;nbsp; There is a section called "Create New Graphs from Scratch" that talks about Graph Box().&amp;nbsp; The entries for "Custom Graph" and "Graphics" in the Scripting Index (also in the Help menu) has details on things you can do in Graph Box.&lt;/P&gt;&lt;P&gt;As with anything in JSL, there's a million ways to skin this cat in&amp;nbsp;Application Builder, but each way is kinda tricky to figure out.&amp;nbsp; The Scripting Guide will tell you can write something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Box(
	Marker(
		Marker State( 3 ),
		[11 44 77],
		[75 25 50]
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem here is that when you drag a Graph Box out into your application, you don't have an opportunity to write the graphics script right there.&amp;nbsp; You just have a blank graph. You have to add the graphics script in your application script.&lt;/P&gt;&lt;P&gt;This is where it gets tricky.&amp;nbsp; Graph Box is really a container box for a bunch of display boxes that make up the graph.&amp;nbsp; The graphing area is a Frame Box.&amp;nbsp; You can add a graphics script to the frame box in your script like so:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = [80 50 20];
y = [20 50 80];

winref = (this module instance &amp;lt;&amp;lt; Get Box);

winref[framebox( 1 )] &amp;lt;&amp;lt; Add Graphics Script( Marker( x, y ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Although, if you look at "Custom Graph" in the Scripting Index, you'll find a bunch of messages you can send to a Graph Box specifically.&lt;/P&gt;&lt;P&gt;For example, you can drag a graph box out into your application and let's say you name it "gb".&amp;nbsp; In the script for that module, I can add points with the following script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; Set Graphics Script( Marker( x, y ) );
//or
gb &amp;lt;&amp;lt; Append Seg( Marker Seg(x,y) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This actually shows you 2 ways to add the points with Append Seg( Marker Seg()) and Set Graphics Script ( Marker()).&amp;nbsp; I prefer the "Set Graphics Script" approach.&amp;nbsp; I attached an example showing all the methods in Application Builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;pointed out, it's often easier to create this kind of plot in Graph Builder or something similar.&amp;nbsp; In Application Builder, you should see all your open reports at the top of the left pane.&amp;nbsp; You could then drag&amp;nbsp;an existing graph builder report into your application.&amp;nbsp; The only issue here is that it's going to look for those exact column names from the data table when the app launches to populate the Graph Builder plot.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:10:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51411#M29145</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-15T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51604#M29259</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8582" target="_blank"&gt;cwillden&lt;/A&gt;&amp;nbsp;for you reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my requirement is something like, I should plot data in 2 columns of a table. Say, Instead of X and Y in your example, I should be able to plot a graph using 2 columns from a table. (For example I have values Level and Population as two columns in a data table "Detail", I should plot between Level and Population).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried in the same way as in your example like Result Graph &amp;lt;&amp;lt; Set Graphics Script (Marker(Level, Population));&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I was not able to get the graph. Should I do anything extra to take data from table?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 13:26:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51604#M29259</guid>
      <dc:creator>Saravana</dc:creator>
      <dc:date>2018-02-20T13:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51612#M29266</link>
      <description>Can you provide a sample data table or maybe a prototype in graph builder of what you would like the plot to look like?&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Tue, 20 Feb 2018 14:38:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51612#M29266</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2018-02-20T14:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51615#M29269</link>
      <description>&lt;P&gt;Hi Anderson,&lt;/P&gt;
&lt;P&gt;I have attached the screen shot of the application what i wish to create.&lt;/P&gt;
&lt;P&gt;I have atached a sample table and script i have used to plot the graph. But I am getting only the empty graph while running. I am not getting the values form the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboard Script.PNG" style="width: 551px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9402i5401658F2C5097F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboard Script.PNG" alt="Dashboard Script.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboard.PNG" style="width: 488px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9403iE9E12710A740B60F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboard.PNG" alt="Dashboard.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graph.PNG" style="width: 370px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9404i3A6DAE801C4129FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graph.PNG" alt="Graph.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.PNG" style="width: 632px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9405i4B1719F2C1AFA4BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table.PNG" alt="Table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:57:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51615#M29269</guid>
      <dc:creator>Saravana</dc:creator>
      <dc:date>2018-02-20T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51617#M29271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11024"&gt;@Saravana&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, you need to store the values of the columns in vectors.&amp;nbsp; You can do that very easily with Col &amp;lt;&amp;lt; Get Values.&lt;/P&gt;&lt;P&gt;For example, you can add this to the App Builder script I sent you earlier:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open Big Class Data Table
dt = Open("$Sample_Data/Big Class.jmp");

//Store height and weight in vectors
x= dt:Height &amp;lt;&amp;lt; Get Values;
y= dt:Weight &amp;lt;&amp;lt; Get Values;

//Graph the points
gb &amp;lt;&amp;lt; Set Graphics Script( Marker( x, y ) );

//Modify X and Y axis
gb &amp;lt;&amp;lt; Set X Axis( {Min(50), Max(70), Inc(5)});
gb &amp;lt;&amp;lt; Set Y Axis( {Min(60), Max(150), Inc(10)});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This plots Weight vs. Height for the Big Class sample data table.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:23:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51617#M29271</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-20T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51624#M29276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8582" target="_blank"&gt;cwillden&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am getting an error popup showing unknown when i try this.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:33:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51624#M29276</guid>
      <dc:creator>Saravana</dc:creator>
      <dc:date>2018-02-20T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51643#M29288</link>
      <description>&lt;P&gt;What is the error?&amp;nbsp; What code did you run?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 16:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51643#M29288</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-20T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51705#M29322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8582" target="_blank"&gt;cwillden&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just used x = table:Name("Level") &amp;lt;&amp;lt; Get Values; instead of &lt;SPAN&gt;x = table:Level &amp;lt;&amp;lt; Get Value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 04:00:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/51705#M29322</guid>
      <dc:creator>Saravana</dc:creator>
      <dc:date>2018-02-21T04:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/658780#M84807</link>
      <description>&lt;P&gt;For a Graph Box in a Dashboard, is there a setting to restrict the displayed data points to the selection of the local Data Filter - or does the user have to control it via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Data filter example",
	H List Box(
		Data Filter Context Box(
			H List Box(
				Data Filter Source Box(
					df = dt &amp;lt;&amp;lt; Data Filter(
						Local,
						Add Filter( columns( :name ), Where( :name == {"CLAY", "DANNY", "DAVID", "EDWARD"} ) )
					)
				),
				dt &amp;lt;&amp;lt; Graph Builder(
					Show Control Panel( 0 ),
					Variables( X( :height ), Y( :weight ) ),
					Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
				),
				
				V List Box(
					Graph Box(
						X Scale( 50, 70 ),
						Y Scale( 60, 200 ),
						myValues = As List( dt[df &amp;lt;&amp;lt;Get Filtered Rows, {height, weight}] );
						For Each( {pos}, myValues,
							Print( pos );
							Circle( pos, 1 );
						)
					)
				);
			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jul 2023 09:15:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/658780#M84807</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-16T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Graph boxes in the JMP Application builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/658829#M84812</link>
      <description>&lt;P&gt;Boxes in Dashboard Builder and Application Builder do not really have added features that they do not already support via JSL.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 00:48:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Graph-boxes-in-the-JMP-Application-builder/m-p/658829#M84812</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-07-17T00:48:42Z</dc:date>
    </item>
  </channel>
</rss>

