<?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: Updating Graph Builder Spec Limits with Column Properties in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Updating-Graph-Builder-Spec-Limits-with-Column-Properties/m-p/366687#M61644</link>
    <description>&lt;P&gt;I have worked up an example of what your graph would look like.&amp;nbsp; I am using a subset of a JMP sample data table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spec.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31136iD3BDB0C3E4731545/image-size/large?v=v2&amp;amp;px=999" role="button" title="spec.PNG" alt="spec.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL to produce the graph. from the attached data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = current data table();

Graph Builder(
	Size( 899, 765 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ), Group X( :SITE ), Group Y( :lot_id ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :wafer ),
			Display( :wafer, N Items( 15 ), Size( 161, 255 ) )
		)
	)
);


:npn1&amp;lt;&amp;lt;set property("spec limits",{LSL( 104.41 ), USL( 120 ), Target( 118.15 ), Show Limits( 1 )});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think your issue is that you have the Add Reference Lines hard coded into your Graph Builder Code.&amp;nbsp; You need to be setting the "Show Limits" and the actual Spec Limits in the Column Property, and Graph Builder will pick up on the change.&lt;/P&gt;
&lt;P&gt;Notice the last line of the script.&amp;nbsp; It changes the spec limits for the column NPN1, the Y Axis column.&amp;nbsp; You can change the values of the USL, LSL and Target and rerun that line, and you will see the spec limits change on the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 03:55:57 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-03-10T03:55:57Z</dc:date>
    <item>
      <title>Updating Graph Builder Spec Limits with Column Properties</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-Graph-Builder-Spec-Limits-with-Column-Properties/m-p/366652#M61639</link>
      <description>&lt;P&gt;Anyone have a script that will update the displayed reference lines in Graph Builder if the Spec Limits are changed through the Column Properties?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the Spec Limits assigned to a column and use the Show as Graphic Lines option to visually display the limits in a script created through Graph Builder. When I update the Spec Limits (via Column Properties), the Graph Builder script is not updating when the Spec Limits are changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAS_0-1615328560656.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31133i76A69E99C0BD4CC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAS_0-1615328560656.png" alt="FAS_0-1615328560656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the script shown above, I want lines 29 and 30 to pull the Spec Limits from "API002 MMAD (micron)" instead of "2.55" and "3" (in case those Spec Limits change). I used Graph Builder to create the script while the Spec Limits were set to "2.55" and "3" through Column Properties but I want this to be more flexible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:08:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-Graph-Builder-Spec-Limits-with-Column-Properties/m-p/366652#M61639</guid>
      <dc:creator>FAS</dc:creator>
      <dc:date>2023-06-09T22:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Graph Builder Spec Limits with Column Properties</title>
      <link>https://community.jmp.com/t5/Discussions/Updating-Graph-Builder-Spec-Limits-with-Column-Properties/m-p/366687#M61644</link>
      <description>&lt;P&gt;I have worked up an example of what your graph would look like.&amp;nbsp; I am using a subset of a JMP sample data table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spec.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31136iD3BDB0C3E4731545/image-size/large?v=v2&amp;amp;px=999" role="button" title="spec.PNG" alt="spec.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL to produce the graph. from the attached data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = current data table();

Graph Builder(
	Size( 899, 765 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ), Group X( :SITE ), Group Y( :lot_id ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :wafer ),
			Display( :wafer, N Items( 15 ), Size( 161, 255 ) )
		)
	)
);


:npn1&amp;lt;&amp;lt;set property("spec limits",{LSL( 104.41 ), USL( 120 ), Target( 118.15 ), Show Limits( 1 )});
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think your issue is that you have the Add Reference Lines hard coded into your Graph Builder Code.&amp;nbsp; You need to be setting the "Show Limits" and the actual Spec Limits in the Column Property, and Graph Builder will pick up on the change.&lt;/P&gt;
&lt;P&gt;Notice the last line of the script.&amp;nbsp; It changes the spec limits for the column NPN1, the Y Axis column.&amp;nbsp; You can change the values of the USL, LSL and Target and rerun that line, and you will see the spec limits change on the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 03:55:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Updating-Graph-Builder-Spec-Limits-with-Column-Properties/m-p/366687#M61644</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-10T03:55:57Z</dc:date>
    </item>
  </channel>
</rss>

