<?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 won't show up on chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361768#M61145</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/779"&gt;@jan_solo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is just a wild guess knowing how JMP labels reference lines. Specify your reference lines with names USL and LSL and add the message to your control chart object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cc_obj &amp;lt;&amp;lt; Show Spec Limits(1);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't work, an alternative is shown in the JMP &amp;gt; Help &amp;gt; Scripting Index&amp;nbsp;&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 );
dt = Open( "$SAMPLE_DATA/Reliability/GaAs Laser.jmp" );
obj = dt &amp;lt;&amp;lt; Degradation(
	Y( :Current ),
	Time( :Hours ),
	Label( :Unit ),
	Set Upper Spec Limit( 7.5 )  //set the spec limits
);
obj &amp;lt;&amp;lt; Show Spec Limits( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My fingers are crossed.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 13:07:31 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2021-02-23T13:07:31Z</dc:date>
    <item>
      <title>Reference lines won't show up on chart</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361739#M61141</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently writing a script that, eventually, generates charts.&amp;nbsp; On these charts, I add 6 reference lines.&amp;nbsp; 2 of them just won't show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;vlbCharts &amp;lt;&amp;lt; Append(
		
		Control Chart Builder(
			Size(800, 500), // Chart size
			Show Two Shewhart Charts(0),
			Show Control Panel(0),
			Show Excluded Region(0),
			Show Limit Summaries(0),
			Show Capability(0),
			Variables(Subgroup(:BatchPrefix), Y(:Value)),
			Chart(
				Points(Statistic("Individual")),
				Limits(Sigma("Moving Range" ), Show Limits(0))
			),
			SendToReport(
				Dispatch(
					{},
					"Control Chart Builder",
					OutlineBox,
					{Set Title(sProduct ||  ": " || sComponent)}
				), // Chart title
				Dispatch(
					{},
					"Value",
					ScaleBox,
					{Min(nMinValue), Max(nMaxValue), Inc(nTicks), Minor Ticks(0),
					Add Ref Line(nLSL, "Solid", "Medium Light Orange", "LSL", 1), // Not shown
					Add Ref Line(nUSL, "Solid", "Medium Light Orange", "USL", 1), // Not shown
					Add Ref Line(nLCL, "Solid", "Medium Dark Red", "LCL", 1),
					Add Ref Line(nUCL, "Solid", "Medium Dark Red", "UCL", 1),
					Add Ref Line(nLCL_Calc, "Solid", "Dark Blue", "LCL_Calc", 1),
					Add Ref Line(nUCL_Calc, "Solid", "Dark Blue", "UCL_Calc", 1)}
				),
				Dispatch(
					{},
					"graph display 1 title",
					TextEditBox,
					{Set Text("")}),
				Dispatch(
					{},
					"Control Chart Builder",
					FrameBox,
					{DispatchSeg(Line Seg(1), {Line Color("Black")} )}
				)
			)
		);
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is the label "LSL"&amp;nbsp; and "USL".&amp;nbsp; When I change these to something else (eg "US" and "LS"), the lines will be displayed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;Add Ref Line(nLSL, "Solid", "Medium Light Orange", &lt;STRONG&gt;"LS"&lt;/STRONG&gt;, 1), // shows on chart&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;Add Ref Line(nUSL, "Solid", "Medium Light Orange", &lt;STRONG&gt;"US"&lt;/STRONG&gt;, 1), // shows&amp;nbsp;on&amp;nbsp;chart&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can actually use LSL and USL as labels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:06:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361739#M61141</guid>
      <dc:creator>jan_solo</dc:creator>
      <dc:date>2023-06-09T22:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reference lines won't show up on chart</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361762#M61144</link>
      <description>&lt;P&gt;This seems to be a bug in the control chart builder platform as it works manually but not in code. I can reproduce the issue on JMP 16 EA8 and have submitted a bug report.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:01:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361762#M61144</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-02-23T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reference lines won't show up on chart</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361768#M61145</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/779"&gt;@jan_solo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is just a wild guess knowing how JMP labels reference lines. Specify your reference lines with names USL and LSL and add the message to your control chart object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cc_obj &amp;lt;&amp;lt; Show Spec Limits(1);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't work, an alternative is shown in the JMP &amp;gt; Help &amp;gt; Scripting Index&amp;nbsp;&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 );
dt = Open( "$SAMPLE_DATA/Reliability/GaAs Laser.jmp" );
obj = dt &amp;lt;&amp;lt; Degradation(
	Y( :Current ),
	Time( :Hours ),
	Label( :Unit ),
	Set Upper Spec Limit( 7.5 )  //set the spec limits
);
obj &amp;lt;&amp;lt; Show Spec Limits( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My fingers are crossed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:07:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361768#M61145</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2021-02-23T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reference lines won't show up on chart</title>
      <link>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361777#M61146</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;is correct.&amp;nbsp; You need to add the following command to your CCB code.&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Show Spec Limits( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;USL and LSL are the names JMP uses when you have a spec limit column property.&amp;nbsp; Some users have requested that spec limit column properties not show by default in control charts.&amp;nbsp; This is how the platform turns those off and on.&amp;nbsp; You are using the same names JMP uses so,&amp;nbsp; you will therefore need to use the above command to see them.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:14:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reference-lines-won-t-show-up-on-chart/m-p/361777#M61146</guid>
      <dc:creator>tonya_mauldin</dc:creator>
      <dc:date>2021-02-23T13:14:27Z</dc:date>
    </item>
  </channel>
</rss>

