<?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: Reference lines in control chart builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/907915#M106620</link>
    <description>&lt;P&gt;I encounter the same issue, all reference lines I added are gone once I embed the chart into the table. Weird thing is it seems work yesterday. I found people always show the solution in a script, but I am not familiar with the JMP script. Is there a quick start script introduction for new JMPer?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2025 15:32:15 GMT</pubDate>
    <dc:creator>PercentileCivet</dc:creator>
    <dc:date>2025-10-15T15:32:15Z</dc:date>
    <item>
      <title>Reference lines in control chart builder</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/51338#M29110</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri"&gt;I am working in Control Chart Builder and attempting to add a reference line in any plot that isn’t the XBar chart, like such&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3-way.PNG" style="width: 423px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9338i28023D663744F5BD/image-dimensions/423x347?v=v2" width="423" height="347" role="button" title="3-way.PNG" alt="3-way.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri"&gt;When I save the script to the window, and run said script, the &lt;FONT face="Calibri"&gt;reference line &lt;/FONT&gt;on the S Chart is gone, which is sad. This problem holds for any chart made in Control Chart Builder that is not an XBar chart. Here is the code&amp;nbsp;that is&amp;nbsp;saves to the Table.&lt;/FONT&gt;&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="script.PNG" style="width: 518px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9339iD27AC90CD9D7DB0F/image-dimensions/518x283?v=v2" width="518" height="283" role="button" title="script.PNG" alt="script.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:03:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/51338#M29110</guid>
      <dc:creator>JosephMaurer</dc:creator>
      <dc:date>2018-02-14T21:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference lines in control chart builder</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/51349#M29113</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11021"&gt;@JosephMaurer&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Welcome to the community! I'm not sure why Dispatch stuff is not working in the script.&amp;nbsp; You want to customize a specific axis box, and for whatever reason, the scale box stuff is not working.&amp;nbsp; I tried replacing the ScaleBox reference with the appropriate axis box reference, but that didn't work.&lt;/P&gt;&lt;P&gt;So, here's a good work around:&lt;/P&gt;&lt;P&gt;1. Get the control chart builder object as a report and save it as a variable.&lt;/P&gt;&lt;P&gt;2. Send a message to the appropriate axis box to update the max value and draw the ref line.&lt;/P&gt;&lt;P&gt;Here's an example with an X-bar and S chart.&amp;nbsp; I found the appropriate axis box by looking in the&amp;nbsp;tree structure.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ccb = Control Chart Builder(
	Size( 522, 446 ),
	Show Control Panel( 0 ),
	Show Capability( 0 ),
	Variables( Subgroup( :Group ), Y( :X ) ),
	Chart( Position( 1 ) ),
	Chart(
		Position( 2 ),
		Points( Statistic( "Standard Deviation" ) ),
		Limits( Sigma( Standard Deviation ) )
	),
	SendToReport(
		Dispatch(
			{},
			"X",
			Axis Box( 3 ),
			{Max( 7.82258064516129 ), Add Ref Line(
				6,
				"Dashed",
				"Medium Dark Blue",
				"",
				2
			)}
		)
	)
) &amp;lt;&amp;lt; Report;

ccb[axisbox(3)] &amp;lt;&amp;lt; Max(8);
ccb[axisbox(3)] &amp;lt;&amp;lt; Add Ref Line(6,"Dashed","Medium Dark Blue","SDWL",2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can delete everything in the SendToReport function.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:34:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/51349#M29113</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-02-14T21:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reference lines in control chart builder</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/907915#M106620</link>
      <description>&lt;P&gt;I encounter the same issue, all reference lines I added are gone once I embed the chart into the table. Weird thing is it seems work yesterday. I found people always show the solution in a script, but I am not familiar with the JMP script. Is there a quick start script introduction for new JMPer?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 15:32:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-in-control-chart-builder/m-p/907915#M106620</guid>
      <dc:creator>PercentileCivet</dc:creator>
      <dc:date>2025-10-15T15:32:15Z</dc:date>
    </item>
  </channel>
</rss>

