<?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: JSL add a title to Control charts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569350#M77995</link>
    <description>&lt;P&gt;You can do this by simply referencing the text box that holds the title, and then update it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt &amp;lt;&amp;lt; Control Chart Builder( Variables( Y( :height ) ), Show Control Panel( 0 ) );
Current Report()[Text Box( 1 )] &amp;lt;&amp;lt; set text( "new title" )
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1668512972985.png" style="width: 669px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47340iB921382974095226/image-dimensions/669x415?v=v2" width="669" height="415" role="button" title="txnelson_0-1668512972985.png" alt="txnelson_0-1668512972985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 11:49:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-11-15T11:49:53Z</dc:date>
    <item>
      <title>JSL add a title to Control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569328#M77992</link>
      <description>&lt;P&gt;Hello, here a script to plot control charts (all the control limits are set by the user and this part of the code is not shown here). How can I modify the script to modify the title of the control chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		dt &amp;lt;&amp;lt; Control Chart Builder(
			Size( 719, 464 ),
			Show Two Shewhart Charts( 0 ),
			Show Control Panel( 0 ),
			Show Capability( 0 ),
			Show Limit Summaries( 0 ),
			Variables( Subgroup( :column( Lot ) ), Y( :column( CQA ) ) ),
			Chart(
				Points( Statistic( "Individual" ) ),
				Add Spec Limits( {LSL( LSL_def ), USL( USL_def )} ),
				Set Control Limits( {LCL( LCL_def ), UCL( UCL_def ), Avg( Avg )} ),
				Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) )
			),
			SendToReport(
			
				Dispatch(
					{},
					Variable,
					ScaleBox,
					{Min( Min( LCL_def, LSL_def ) - 1 ), Max( Max( UCL_def, USL_def ) + 1 ), Inc( 1 ), Minor Ticks( 0 ),
					Add Ref Line( LSL_def, "Solid", "Blue", "LSL=" || Char( LSL_def ), 2 ), 
					Add Ref Line(
						USL_def,
						"Solid",
						"Blue",
						"USL=" || Char( USL_def ),
						2
					), 
					
					Add Ref Line( LCL_def, "Solid", "Red", "-" || Sigma || "σ=" || Char( LCL_val ), 1 ), Add Ref Line(
						UCL_def,
						"Solid",
						"Red",
						"+" || Sigma || "σ=" || Char( UCL_val ),
						1
					), 
					
					Add Ref Line( Avg, "", "Green", "µ=" || Char( Avg ), 1 ), Label Row( Set Font Style( "Bold" ) )}
				),
				Dispatch(
					{},
					"Control Chart Builder",
					FrameBox,
					{Add Graphics Script( 2, Description( "" ), Text( {10, 100}, "" ) ), Add Graphics Script(
						3,
						Description( "" ),
						Pen Color( "black" );
						V Line( Split - 0.5 );
					), Grid Line Order( 1 ), Reference Line Order( 4 ), DispatchSeg(
						TopSeg( 2 ),
						{Set Script(
							Pen Color( "black" );
							V Line( Split - 0.5 );
						)}
					)}
				)
			)
		)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:02:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569328#M77992</guid>
      <dc:creator>PersuasionCamel</dc:creator>
      <dc:date>2023-06-09T16:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL add a title to Control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569350#M77995</link>
      <description>&lt;P&gt;You can do this by simply referencing the text box that holds the title, and then update it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt &amp;lt;&amp;lt; Control Chart Builder( Variables( Y( :height ) ), Show Control Panel( 0 ) );
Current Report()[Text Box( 1 )] &amp;lt;&amp;lt; set text( "new title" )
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1668512972985.png" style="width: 669px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47340iB921382974095226/image-dimensions/669x415?v=v2" width="669" height="415" role="button" title="txnelson_0-1668512972985.png" alt="txnelson_0-1668512972985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 11:49:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569350#M77995</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-11-15T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: JSL add a title to Control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569466#M78006</link>
      <description>&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a last question. I want to change the title of the Control Chart according to the levels of my "Strength" variable.&lt;/P&gt;&lt;P&gt;I used your code and modify it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;summarize(dt,SubSet_Strength=by(:Strength));

Current Report()[Text Box( 1 )] &amp;lt;&amp;lt; set text(Char( Variable)||" - "||Char( SubSet_Strength ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I got the following result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PersuasionCamel_0-1668525126820.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47355i8FB5AD5EF25F96E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PersuasionCamel_0-1668525126820.png" alt="PersuasionCamel_0-1668525126820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I have the levels of my Strength variable with the commas, but without parenthesis and quotation marks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:15:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569466#M78006</guid>
      <dc:creator>PersuasionCamel</dc:creator>
      <dc:date>2022-11-15T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSL add a title to Control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569515#M78013</link>
      <description>&lt;P&gt;Your Subset_Strength is a JMP List, not a character string.&amp;nbsp; You can use Concat Items() to take the elements of the list, an move them to a Character String, which can then be used as you want it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Summarize( dt, SubSet_Strength = by( :Strength ) );

Current Report()[Text Box( 1 )] &amp;lt;&amp;lt; set text( Char( Variable ) || " - " || Concat Items( Subset_Strength, ", " ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:30:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/569515#M78013</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-11-15T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSL add a title to Control charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/570028#M78043</link>
      <description>&lt;P&gt;Perfect! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:40:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-add-a-title-to-Control-charts/m-p/570028#M78043</guid>
      <dc:creator>PersuasionCamel</dc:creator>
      <dc:date>2022-11-16T15:40:17Z</dc:date>
    </item>
  </channel>
</rss>

