<?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: Allow ranges in graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231074#M45829</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8834"&gt;@JulieSAppel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should be able to replace the actual number, e.g. 119.84 with something like Eval(Col Min(:Column)) and the max with something like Eval(Col Max(:Column2)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I did a quick test on one of my data tables, and this works. If the column is "lower limit", you might have to do something like&lt;/P&gt;&lt;P&gt;Eval(Col Min(:Name("lower limit"))). You might need to adjust the ticks in the JSL code to make for a more appealing graph, but I think an approach like this might work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm sure&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;should be able to confirm if my approach is valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 15:35:21 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2019-10-28T15:35:21Z</dc:date>
    <item>
      <title>Allow ranges in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/230767#M45758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When changing the X-axis settings in a graph is it possible to use the Allow Ranges and picking values based on the data set (in a script)? Or can this only be manually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m trying to produce a plot with colour coded ranges (that are chosen from the data set), like a control chart but on the x-axis.&lt;/P&gt;&lt;P&gt;Br Julie&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 13:30:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/230767#M45758</guid>
      <dc:creator>JulieSAppel</dc:creator>
      <dc:date>2019-10-25T13:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Allow ranges in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/230797#M45766</link>
      <description>&lt;P&gt;The easiest way to find out what the JSL to add such an option such as the "Allow Ranges" is to interactively run the graph, adding the option you want(Allow Ranges) and then to save the script from the graph.&amp;nbsp; Here is a graph with Allow Ranges&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="allowranges.PNG" style="width: 950px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19883i80F02347CEE1CC15/image-size/large?v=v2&amp;amp;px=999" role="button" title="allowranges.PNG" alt="allowranges.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and here is the script generated from the graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Add Ref Line( {119.84, 130}, "Solid", "Black", "", 1, 0.25 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And here is a modification to that script into a form that is more programmically easy to work with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ));

report(gb)[AxisBox(1)]&amp;lt;&amp;lt;Add Ref Line( {119.84, 130}, "Solid", "Black", "", 1, 0.25 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Oct 2019 14:37:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/230797#M45766</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-25T14:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Allow ranges in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231054#M45823</link>
      <description>&lt;P&gt;Actually my ranges will differ from dataset to dataset so I´m trying to figure out how to have the ranges in the graph added based on limits in the data set and not one set of ranges. So basically, in the code where it says:&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token function"&gt;report&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;gb&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;AxisBox&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt;Add Ref Line&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;119.84&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;130&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Solid"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"Black"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0.25&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can you have references to specific data point instead of actual numbers (e.g.:&amp;nbsp; dt(:lower limit, :upper limit) instead of&amp;nbsp; &lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token number"&gt;119.84&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;130&lt;/SPAN&gt;&lt;/CODE&gt;)?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:49:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231054#M45823</guid>
      <dc:creator>JulieSAppel</dc:creator>
      <dc:date>2019-10-28T13:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Allow ranges in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231074#M45829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8834"&gt;@JulieSAppel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You should be able to replace the actual number, e.g. 119.84 with something like Eval(Col Min(:Column)) and the max with something like Eval(Col Max(:Column2)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I did a quick test on one of my data tables, and this works. If the column is "lower limit", you might have to do something like&lt;/P&gt;&lt;P&gt;Eval(Col Min(:Name("lower limit"))). You might need to adjust the ticks in the JSL code to make for a more appealing graph, but I think an approach like this might work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm sure&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;should be able to confirm if my approach is valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:35:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231074#M45829</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-10-28T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Allow ranges in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231165#M45847</link>
      <description>&lt;P&gt;Below is the code that I used to add in the range value&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/semiconductor capability.jmp");

gb = Graph Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);

Eval(
	Substitute(
			Expr(
				Report( gb )[AxisBox( 1 )] &amp;lt;&amp;lt; Add Ref Line( {__LSL__, __USL__}, "Solid", "Black", "", 1, 0.25 )
			),
		Expr( __LSL__ ), (dt:PNP1 &amp;lt;&amp;lt; get property( "spec limits" ))["LSL"],
		Expr( __USL__ ), (dt:PNP1 &amp;lt;&amp;lt; get property( "spec limits" ))["USL"]
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Oct 2019 20:44:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Allow-ranges-in-graph-builder/m-p/231165#M45847</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-28T20:44:57Z</dc:date>
    </item>
  </channel>
</rss>

