<?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 freeze control chart display when data is updated in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48694#M27694</link>
    <description>&lt;P&gt;Thanks for your suggestions. I think that was my second question. Where do I insert your script in original script (above).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 16:07:03 GMT</pubDate>
    <dc:creator>AT</dc:creator>
    <dc:date>2017-12-15T16:07:03Z</dc:date>
    <item>
      <title>How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48572#M27622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a script that read a csv file and does control chart. I like to automate this process so new data is updated, the control chart does not generate new charts. I like to only see on chart with updated data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the script I used. I appreciate your help. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P class="p1"&gt;Names Default To Here&lt;SPAN class="s1"&gt;( &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;dt =&lt;SPAN class="s3"&gt;Open&lt;/SPAN&gt;(&lt;/P&gt;&lt;P class="p4"&gt;"/Users/adatorab/Documents/JMP/PASS.csv"&lt;SPAN class="s1"&gt;,invisible);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;obj = dt &amp;lt;&amp;lt;&lt;/P&gt;&lt;P class="p5"&gt;Control Chart Builder&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Variables( Y( :A ) ),&lt;/P&gt;&lt;P class="p5"&gt;Chart&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s2"&gt;1&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points(&lt;/P&gt;&lt;P class="p3"&gt;Statistic(&lt;/P&gt;&lt;P class="p4"&gt;"Individual"&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;),&lt;/P&gt;&lt;P class="p3"&gt;Limits(&lt;/P&gt;&lt;P class="p3"&gt;Sigma(&lt;/P&gt;&lt;P class="p4"&gt;"Moving Range"&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;),&lt;/P&gt;&lt;P class="p5"&gt;Chart&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s2"&gt;2&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points(&lt;/P&gt;&lt;P class="p3"&gt;Statistic(&lt;/P&gt;&lt;P class="p4"&gt;"Moving Range"&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;),&lt;/P&gt;&lt;P class="p3"&gt;Limits(&lt;/P&gt;&lt;P class="p3"&gt;Sigma(&lt;/P&gt;&lt;P class="p4"&gt;"Moving Range"&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p3"&gt;obj &amp;lt;&amp;lt; &lt;SPAN class="s4"&gt;ShowWindow&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;0&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;nw = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;"Control Chart"&lt;SPAN class="s1"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;nw &amp;lt;&amp;lt; &lt;SPAN class="s4"&gt;Append&lt;/SPAN&gt;(( &lt;SPAN class="s3"&gt;H List Box&lt;/SPAN&gt;( (obj &amp;lt;&amp;lt; &lt;SPAN class="s4"&gt;Report&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s4"&gt;Clone Box&lt;/SPAN&gt;)));&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 19:23:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48572#M27622</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-13T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48606#M27643</link>
      <description>&lt;P&gt;I may be going in the wrong direction here but I think you want the chart in your window to be replaced when new data shows up rather than adding another below/after it.&amp;nbsp; To do that, delete the old chart before appending a new one.&amp;nbsp; Here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );

//Open sample data
dt = Open("$SAMPLE_DATA/Abrasion.jmp");

//A variable used to hide part of the data
lastrow = 10;

//Hide data after the last row (simulates a smaller table)
df = dt &amp;lt;&amp;lt; Data Filter(
	Location( {696, 15} ),
	Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
	Add Filter(
		columns( Transform Column( "Row", Formula( Row() ) ) ),
		Where(
			Transform Column( "Row", Formula( Row() ) ) &amp;lt;= lastrow
		)
	)
);

//A function that will update the chart
UpdateData = function( {},
	
	//Add one row to the data table
	lastrow++;
	
	//Update the data filter (simulates getting more data)
	df &amp;lt;&amp;lt; Delete All;
	df &amp;lt;&amp;lt; Add Filter(
		columns( Transform Column( "Row", Formula( Row() ) ) ),
		Where(
			Transform Column( "Row", Formula( Row() ) ) &amp;lt;= lastrow
		)
	);
	
	//Make the control chart
	obj = dt &amp;lt;&amp;lt; Control Chart Builder(
		Variables( Y( :Abrasion ) ), 
		Chart(
			Position( 1 ), 
			Points( Statistic( "Individual" ) ), 
			Limits( Sigma( "Moving Range" ) )
		), 
		Chart(
			Position( 2 ), 
			Points( Statistic( "Moving Range" ) ), 
			Limits( Sigma( "Moving Range" ) )
		)
	);
	
	//Hide the temporary control chart window
	obj &amp;lt;&amp;lt; ShowWindow(0); 

	//Remove existing/old graph from the window (if there is one)
	Try( (holder &amp;lt;&amp;lt; Child) &amp;lt;&amp;lt; Delete );
	
	//Add the new graph
	holder &amp;lt;&amp;lt; Append(( H List Box( (obj &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box)));
	
	//Close the temporary control chart
	obj &amp;lt;&amp;lt; Close Window;
);

//Open a window to show the new control chart and a button to refresh the chart
//Includes a button to run the script above.
nw = New Window("Control Chart",
	V List Box(
		Button Box("New Data", UpdateData() ),
		holder = H List Box();
	)
);

//Load the first chart in the window (run the script in the function)
UpdateData();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Dec 2017 02:54:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48606#M27643</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-14T02:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48653#M27674</link>
      <description>&lt;P&gt;Thanks. I use window scheduler to run this script and like to see one chart when data is read after (say 15 sec or so). I get many "control chart"). I tried your example and I put it the window task (also&amp;nbsp; Schedule function) and I get many "control chart" 1, 2, 3,.. Is there anyway you one can get only on chart?&lt;/P&gt;&lt;P&gt;Below is what I use. Thanks&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//A function that will update the chart&lt;/P&gt;&lt;P class="p3"&gt;UpdateData = &lt;SPAN class="s1"&gt;function&lt;/SPAN&gt;( {},&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Make the control chart&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s2"&gt;obj = dt &amp;lt;&amp;lt; &lt;/SPAN&gt;Control Chart Builder&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Variables( Y( :Abrasion ) ),&lt;/P&gt;&lt;P class="p5"&gt;Chart&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s3"&gt;1&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points( Statistic( &lt;SPAN class="s4"&gt;"Individual"&lt;/SPAN&gt; ) ),&lt;/P&gt;&lt;P class="p3"&gt;Limits( Sigma( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) )&lt;/P&gt;&lt;P class="p3"&gt;),&lt;/P&gt;&lt;P class="p5"&gt;Chart&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s3"&gt;2&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points( Statistic( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) ),&lt;/P&gt;&lt;P class="p3"&gt;Limits( Sigma( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) )&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Hide the temporary control chart window&lt;/P&gt;&lt;P class="p3"&gt;obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;ShowWindow&lt;/SPAN&gt;(&lt;SPAN class="s3"&gt;0&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Remove existing/old graph from the window (if there is one)&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s1"&gt;Try&lt;/SPAN&gt;( (holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Child&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Delete&lt;/SPAN&gt; );&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Add the new graph&lt;/P&gt;&lt;P class="p3"&gt;holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Append&lt;/SPAN&gt;(( &lt;SPAN class="s1"&gt;H List Box&lt;/SPAN&gt;( (obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Report&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Clone Box&lt;/SPAN&gt;)));&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Close the temporary control chart&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s2"&gt;obj &amp;lt;&amp;lt; &lt;/SPAN&gt;Close Window&lt;SPAN class="s2"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Open a window to show the new control chart and a button to refresh the chart&lt;/P&gt;&lt;P class="p2"&gt;//Includes a button to run the script above.&lt;/P&gt;&lt;P class="p6"&gt;&lt;SPAN class="s2"&gt;nw = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;"Control Chart"&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p7"&gt;V List Box&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s1"&gt;Button Box&lt;/SPAN&gt;(&lt;SPAN class="s4"&gt;"New Data"&lt;/SPAN&gt;, UpdateData() ),&lt;/P&gt;&lt;P class="p3"&gt;holder = &lt;SPAN class="s1"&gt;H List Box&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;//Load the first chart in the window (run the script in the function)&lt;/P&gt;&lt;P class="p3"&gt;UpdateData();&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p3"&gt;quickieScript;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:14:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48653#M27674</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-14T21:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48654#M27675</link>
      <description>&lt;P class="p1"&gt;Sorry I&amp;nbsp; missed first few lines. Here is the correct one.&lt;/P&gt;&lt;P class="p1"&gt;------------&lt;/P&gt;&lt;P class="p1"&gt;names default to here&lt;SPAN class="s1"&gt;( &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;quickieScript = &lt;SPAN class="s3"&gt;Expr&lt;/SPAN&gt;(&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;Schedule&lt;/SPAN&gt;( &lt;SPAN class="s2"&gt;15&lt;/SPAN&gt;, quickieScript );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Open sample data&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s1"&gt;dt = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Open&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;"$SAMPLE_DATA/Abrasion.jmp"&lt;SPAN class="s1"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//A function that will update the chart&lt;/P&gt;&lt;P class="p3"&gt;UpdateData = &lt;SPAN class="s3"&gt;function&lt;/SPAN&gt;( {},&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Make the control chart&lt;/P&gt;&lt;P class="p6"&gt;&lt;SPAN class="s1"&gt;obj = dt &amp;lt;&amp;lt; &lt;/SPAN&gt;Control Chart Builder&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Variables( Y( :Abrasion ) ),&lt;/P&gt;&lt;P class="p7"&gt;Chart&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s2"&gt;1&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points( Statistic( &lt;SPAN class="s4"&gt;"Individual"&lt;/SPAN&gt; ) ),&lt;/P&gt;&lt;P class="p3"&gt;Limits( Sigma( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) )&lt;/P&gt;&lt;P class="p3"&gt;),&lt;/P&gt;&lt;P class="p7"&gt;Chart&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;Position( &lt;SPAN class="s2"&gt;2&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p3"&gt;Points( Statistic( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) ),&lt;/P&gt;&lt;P class="p3"&gt;Limits( Sigma( &lt;SPAN class="s4"&gt;"Moving Range"&lt;/SPAN&gt; ) )&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Hide the temporary control chart window&lt;/P&gt;&lt;P class="p3"&gt;obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;ShowWindow&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;0&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Remove existing/old graph from the window (if there is one)&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;Try&lt;/SPAN&gt;( (holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Child&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Delete&lt;/SPAN&gt; );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Add the new graph&lt;/P&gt;&lt;P class="p3"&gt;holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Append&lt;/SPAN&gt;(( &lt;SPAN class="s3"&gt;H List Box&lt;/SPAN&gt;( (obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Report&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Clone Box&lt;/SPAN&gt;)));&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Close the temporary control chart&lt;/P&gt;&lt;P class="p6"&gt;&lt;SPAN class="s1"&gt;obj &amp;lt;&amp;lt; &lt;/SPAN&gt;Close Window&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Open a window to show the new control chart and a button to refresh the chart&lt;/P&gt;&lt;P class="p4"&gt;//Includes a button to run the script above.&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s1"&gt;nw = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;"Control Chart"&lt;SPAN class="s1"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;V List Box&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;Button Box&lt;/SPAN&gt;(&lt;SPAN class="s4"&gt;"New Data"&lt;/SPAN&gt;, UpdateData() ),&lt;/P&gt;&lt;P class="p3"&gt;holder = &lt;SPAN class="s3"&gt;H List Box&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p3"&gt;)&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p4"&gt;//Load the first chart in the window (run the script in the function)&lt;/P&gt;&lt;P class="p3"&gt;UpdateData();&lt;/P&gt;&lt;P class="p3"&gt;);&lt;/P&gt;&lt;P class="p3"&gt;quickieScript;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:16:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48654#M27675</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-14T21:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48667#M27678</link>
      <description>&lt;P&gt;Now I think I understand.&amp;nbsp; The problem is that you are opening a new window every time the script runs.&amp;nbsp; At the beginning of of each update you either want to close the last window or refresh the same window with a new chart.&amp;nbsp; Below is an example of the latter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I often write 'pseudocode' in comments before writing any real code, I find that helps make sure code actually does what I expect it to.&amp;nbsp; Then once the whole workflow makes sense I fill in the code to actually do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open a window

//Every 15 Seconds:
	//Make a chart with the latest data
	//Update the window with a new chart&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open a window to show a control chart and then update
//the chart every 15 seconds
//Includes a button to refresh early.

Names Default To Here( 1 );

//Define variables here that need to keep their values through subsequent function calls
//This includes the window and data table

//Open a window to hold the chart (note this only happens once)
nw = New Window( "Control Chart", 
	V List Box(
		Button Box( "New Data", UpdateData() ), 
		holder = H List Box();
	)
);

//Make a variable to hold a reference to the data table
dt = .;

//A function that will update the chart
UpdateData = Function( {}, 

	//Close the table if it is already open
	Try( dt &amp;lt;&amp;lt; Close Window );
	
	//Open data table
	dt = Open( "$SAMPLE_DATA/Abrasion.jmp", Private );
	
	//Make the control chart
	obj = dt &amp;lt;&amp;lt; Control Chart Builder(

		Variables( Y( :Abrasion ) ), 
		Chart(
			Position( 1 ), 
			Points( Statistic( "Individual" ) ), 
			Limits( Sigma( "Moving Range" ) )
		), 

		Chart(
			Position( 2 ), 
			Points( Statistic( "Moving Range" ) ), 
			Limits( Sigma( "Moving Range" ) )
		)
	);

	//Hide the temporary control chart window

	obj &amp;lt;&amp;lt; ShowWindow( 0 );

	//Remove existing/old graph from the window (if there is one)
	Try( (holder &amp;lt;&amp;lt; Child) &amp;lt;&amp;lt; Delete );

	//Wait a moment to show when the chart updates
	Wait(0.2);

	//Add the new graph
	holder &amp;lt;&amp;lt; Append( (H List Box( (obj &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box )) );

	//Close the temporary control chart
	obj &amp;lt;&amp;lt; Close Window;

);

//Script to update then chart and then call itself 15 seconds later
quickieScript = Expr(

	//Load the chart in the window (run the script in the function)
	UpdateData();
	
	//Run this same script in 15 seconds
	Schedule( 15, quickieScript );

);

//Start things off:
quickieScript;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Dec 2017 01:21:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48667#M27678</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-15T01:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48668#M27679</link>
      <description>&lt;P&gt;Is the issue that you only want to see the most recent data in the conrol chart?&lt;/P&gt;
&lt;P&gt;I've run into some scenerios where the data is being updated in some table. Each time I grab a copy of the table, I only want to see the last 50 rows, regardless of how many rows are in the table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is pretty easy to set up. &amp;nbsp;Just make a control chart, and adjust the x axis. Then look at the control chart script and find the part that looks like the script below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	SendToReport(
		Dispatch(
			{"Individual Measurement of Metric 1"},
			"1",
			ScaleBox,
			{Min( nrows()-50), Max( nrows()+2 ), Inc( 5 ),
			Minor Ticks( 0 )}
		),
&lt;/PRE&gt;
&lt;P&gt;Where it says Min( and Max(, edit values in the original script. Replace the number in min() with &lt;EM&gt;nrows()-50&lt;/EM&gt; and replace the number in max() with &lt;EM&gt;nrows()+2. &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if you do all the fancy, delete and append stuff, you'll get a control chart with the most current data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 01:31:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48668#M27679</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-12-15T01:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48693#M27693</link>
      <description>&lt;P&gt;Thank you so much. This solved my problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 16:04:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48693#M27693</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-15T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48694#M27694</link>
      <description>&lt;P&gt;Thanks for your suggestions. I think that was my second question. Where do I insert your script in original script (above).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 16:07:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48694#M27694</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-15T16:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48747#M27711</link>
      <description>&lt;P&gt;This is a control chart script to run against Abrasion.jmp&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Control Chart(
	Group Size( 1 ),
	KSigma( 3 ),
	Chart Col( :Abrasion, Individual Measurement ),
	SendToReport(
		Dispatch(
			{"Individual Measurement of Abrasion"},
			"1",
			ScaleBox,
			{Min( nrows()-25 ), Max( nrows()+2 ), Inc( 5 ),
			Minor Ticks( 1 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It uses the classic control chart platform&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 22:15:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48747#M27711</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-12-15T22:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48749#M27712</link>
      <description>&lt;P&gt;Thanks. I tried this and I get no error but I don't see x axis only twenty points.&lt;/P&gt;&lt;P&gt;Can you help further? I appreciate it a lot.&lt;/P&gt;&lt;P class="p1"&gt;//Open a window to show a control chart and then update&lt;/P&gt;&lt;P class="p1"&gt;//the chart every 15 seconds&lt;/P&gt;&lt;P class="p1"&gt;//Includes a button to refresh early.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Names Default To Here&lt;SPAN class="s1"&gt;( &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Define variables here that need to keep their values through subsequent function calls&lt;/P&gt;&lt;P class="p1"&gt;//This includes the window and data table&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Open a window to hold the chart (note this only happens once)&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;nw = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;( &lt;/SPAN&gt;"Control Chart"&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;V List Box&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;Button Box&lt;/SPAN&gt;( &lt;SPAN class="s4"&gt;"New Data"&lt;/SPAN&gt;, UpdateData() ),&lt;/P&gt;&lt;P class="p5"&gt;holder = &lt;SPAN class="s3"&gt;H List Box&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p5"&gt;)&lt;/P&gt;&lt;P class="p5"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Make a variable to hold a reference to the data table&lt;/P&gt;&lt;P class="p5"&gt;dt = &lt;SPAN class="s2"&gt;.&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//A function that will update the chart&lt;/P&gt;&lt;P class="p5"&gt;UpdateData = &lt;SPAN class="s3"&gt;Function&lt;/SPAN&gt;( {},&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Close the table if it is already open&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;Try&lt;/SPAN&gt;( dt &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Close Window&lt;/SPAN&gt; );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Open data table&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;dt = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Open&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;( &lt;/SPAN&gt;"$SAMPLE_DATA/Abrasion.jmp"&lt;SPAN class="s1"&gt;, Private );&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Make the control chart&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p6"&gt;&lt;SPAN class="s1"&gt;obj = dt &amp;lt;&amp;lt; &lt;/SPAN&gt;Control Chart Builder&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p5"&gt;Show Two Shewhart Charts( &lt;SPAN class="s2"&gt;0&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p5"&gt;Show Control Panel( &lt;SPAN class="s2"&gt;0&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p5"&gt;Show Capability( &lt;SPAN class="s2"&gt;0&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p5"&gt;Variables( Y( :Abrasion ) ),&lt;/P&gt;&lt;P class="p7"&gt;Chart&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p5"&gt;Points( Statistic( &lt;SPAN class="s4"&gt;"Individual"&lt;/SPAN&gt; ) ),&lt;/P&gt;&lt;P class="p5"&gt;Limits( Sigma( Moving Range ) ),&lt;/P&gt;&lt;P class="p1"&gt;//Warnings( Test 1( 1 ) )&lt;/P&gt;&lt;P class="p5"&gt;SendToReport(&lt;/P&gt;&lt;P class="p5"&gt;Dispatch(&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;{&lt;/SPAN&gt;"Individual Measurement of Abrasion"&lt;SPAN class="s1"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s4"&gt;"1"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P class="p5"&gt;ScaleBox,&lt;/P&gt;&lt;P class="p5"&gt;{&lt;SPAN class="s3"&gt;Min&lt;/SPAN&gt;( &lt;SPAN class="s3"&gt;nrows&lt;/SPAN&gt;()-&lt;SPAN class="s2"&gt;20&lt;/SPAN&gt; ), &lt;SPAN class="s3"&gt;Max&lt;/SPAN&gt;( &lt;SPAN class="s3"&gt;nrows&lt;/SPAN&gt;()+&lt;SPAN class="s2"&gt;2&lt;/SPAN&gt; ), Inc( &lt;SPAN class="s2"&gt;5&lt;/SPAN&gt; ),&lt;/P&gt;&lt;P class="p5"&gt;Minor Ticks( &lt;SPAN class="s2"&gt;1&lt;/SPAN&gt; )}&lt;/P&gt;&lt;P class="p5"&gt;)&lt;/P&gt;&lt;P class="p5"&gt;)&lt;/P&gt;&lt;P class="p5"&gt;)&lt;/P&gt;&lt;P class="p5"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Hide the temporary control chart window&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p5"&gt;obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;ShowWindow&lt;/SPAN&gt;( &lt;SPAN class="s2"&gt;0&lt;/SPAN&gt; );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Remove existing/old graph from the window (if there is one)&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;Try&lt;/SPAN&gt;( (holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Child&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Delete&lt;/SPAN&gt; );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Wait a moment to show when the chart updates&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;Wait&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;0.2&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Add the new graph&lt;/P&gt;&lt;P class="p5"&gt;holder &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Append&lt;/SPAN&gt;( (&lt;SPAN class="s3"&gt;H List Box&lt;/SPAN&gt;( (obj &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Report&lt;/SPAN&gt;) &amp;lt;&amp;lt; &lt;SPAN class="s5"&gt;Clone Box&lt;/SPAN&gt; )) );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Close the temporary control chart&lt;/P&gt;&lt;P class="p6"&gt;&lt;SPAN class="s1"&gt;obj &amp;lt;&amp;lt; &lt;/SPAN&gt;Close Window&lt;SPAN class="s1"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p5"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Script to update then chart and then call itself 15 seconds later&lt;/P&gt;&lt;P class="p5"&gt;quickieScript = &lt;SPAN class="s3"&gt;Expr&lt;/SPAN&gt;(&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Load the chart in the window (run the script in the function)&lt;/P&gt;&lt;P class="p5"&gt;UpdateData();&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Run this same script in 15 seconds&lt;/P&gt;&lt;P class="p5"&gt;&lt;SPAN class="s3"&gt;Schedule&lt;/SPAN&gt;( &lt;SPAN class="s2"&gt;15&lt;/SPAN&gt;, quickieScript );&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p5"&gt;);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;//Start things off:&lt;/P&gt;&lt;P class="p5"&gt;quickieScript;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 23:28:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48749#M27712</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-15T23:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48750#M27713</link>
      <description>&lt;P&gt;it looks like you've got a control chart builder report. The classic control charts work a little differently. (easier)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 23:44:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48750#M27713</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-12-15T23:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48757#M27715</link>
      <description>&lt;P&gt;I copied Bryon's control chart code into yours, added a random&amp;nbsp;'min' time, and&amp;nbsp;here is what I see:&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="control chart random start.PNG" style="width: 523px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8720i900D97CC7A74122C/image-size/large?v=v2&amp;amp;px=999" role="button" title="control chart random start.PNG" alt="control chart random start.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Open a window to show a control chart and then update
//the chart every 15 seconds
//Includes a button to refresh early.
 
Names Default To Here( 1 );
 
//Define variables here that need to keep their values through subsequent function calls
//This includes the window and data table
 
//Open a window to hold the chart (note this only happens once)
nw = New Window( "Control Chart", 
	V List Box(
		Button Box( "New Data", UpdateData() ), 
		holder = H List Box();
	)
);
 
//Make a variable to hold a reference to the data table
dt = .;
 
//A function that will update the chart
UpdateData = Function( {}, 
 
	//Close the table if it is already open
	Try( dt &amp;lt;&amp;lt; Close Window );
 
	//Open data table
	dt = Open( "$SAMPLE_DATA/Abrasion.jmp", Private );
 
	//Make the control chart
	obj = dt &amp;lt;&amp;lt; Control Chart(
		Group Size( 1 ),
		KSigma( 3 ),
		Chart Col( :Abrasion, Individual Measurement ),
		SendToReport(
			Dispatch(
				{"Individual Measurement of Abrasion"},
				"1",
				ScaleBox,
				{Min( nrows() - Floor( Random Uniform( 10, 25 ) ) ), Max( nrows() + 2 ), Inc( 5 ),
				Minor Ticks( 1 )}
			)
		)
	);
 
 
	//Hide the temporary control chart window
	obj &amp;lt;&amp;lt; ShowWindow( 0 );
 
	//Remove existing/old graph from the window (if there is one)
	Try( (holder &amp;lt;&amp;lt; Child) &amp;lt;&amp;lt; Delete );
 
	//Add the new graph
	holder &amp;lt;&amp;lt; Append( (H List Box( (obj &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box )) );
 
	//Close the temporary control chart
	obj &amp;lt;&amp;lt; Close Window;
 
);
 
//Script to update then chart and then call itself 15 seconds later
quickieScript = Expr(
 
	//Load the chart in the window (run the script in the function)
	UpdateData();
 
	//Run this same script in 5 seconds
	Schedule( 5, quickieScript );
 
);
 
//Start things off:
quickieScript;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2017 03:33:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48757#M27715</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-16T03:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to freeze control chart display when data is updated</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48817#M27746</link>
      <description>&lt;P&gt;Thanks so much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:23:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-freeze-control-chart-display-when-data-is-updated/m-p/48817#M27746</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2017-12-18T17:23:37Z</dc:date>
    </item>
  </channel>
</rss>

