<?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 Add Ref Line () not working if axes names are supplied from outside. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-Ref-Line-not-working-if-axes-names-are-supplied-from-outside/m-p/643016#M83973</link>
    <description>&lt;P&gt;The first case works fine but the second case where the axes names are supplied from outside does not work, where am I going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 528, 457 ),
	Show Control Panel( 0 ),
	Variables( X( :Column (3) ), Y( :Column (4) ) ),
	Elements( Points( X, Y, Legend( 3 ) )), 
		SendToReport(
		Dispatch(
			{},
			"Median 1",
			ScaleBox,
			{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
		),
		Dispatch(
			{},
			"Median 2",
			ScaleBox,
			{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
		)
	)

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;second case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;xColName =  Column Name( 3 ); show (xColName);
yColName =  Column Name( 4 ); show (yColName);

Graph Builder(
	Size( 528, 457 ),
	Show Control Panel( 0 ),
	Variables( X( :Column (3) ), Y( :Column (4) ) ),
	Elements( Points( X, Y, Legend( 3 ) )), 
		SendToReport(
		Dispatch(
			{},
			xColName, //"xColName"
			ScaleBox,
			{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
		),
		Dispatch(
			{},
			yColName, //"yColName"
			ScaleBox,
			{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
		)
	)

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 15:03:39 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-06-19T15:03:39Z</dc:date>
    <item>
      <title>Add Ref Line () not working if axes names are supplied from outside.</title>
      <link>https://community.jmp.com/t5/Discussions/Add-Ref-Line-not-working-if-axes-names-are-supplied-from-outside/m-p/643016#M83973</link>
      <description>&lt;P&gt;The first case works fine but the second case where the axes names are supplied from outside does not work, where am I going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 528, 457 ),
	Show Control Panel( 0 ),
	Variables( X( :Column (3) ), Y( :Column (4) ) ),
	Elements( Points( X, Y, Legend( 3 ) )), 
		SendToReport(
		Dispatch(
			{},
			"Median 1",
			ScaleBox,
			{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
		),
		Dispatch(
			{},
			"Median 2",
			ScaleBox,
			{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
		)
	)

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;second case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;xColName =  Column Name( 3 ); show (xColName);
yColName =  Column Name( 4 ); show (yColName);

Graph Builder(
	Size( 528, 457 ),
	Show Control Panel( 0 ),
	Variables( X( :Column (3) ), Y( :Column (4) ) ),
	Elements( Points( X, Y, Legend( 3 ) )), 
		SendToReport(
		Dispatch(
			{},
			xColName, //"xColName"
			ScaleBox,
			{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
		),
		Dispatch(
			{},
			yColName, //"yColName"
			ScaleBox,
			{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
			Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
		)
	)

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 15:03:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-Ref-Line-not-working-if-axes-names-are-supplied-from-outside/m-p/643016#M83973</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-19T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add Ref Line () nor working if axes names are supplied from outside.</title>
      <link>https://community.jmp.com/t5/Discussions/Add-Ref-Line-not-working-if-axes-names-are-supplied-from-outside/m-p/643037#M83976</link>
      <description>&lt;P&gt;I would use a better programming structure to accomplish what you are looking for.&amp;nbsp; The Reference Lines can be directly applied to the chart by modifying the Axis Object(s) in the display output.&amp;nbsp; See below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Size( 528, 457 ),
	Show Control Panel( 0 ),
	Variables( X( :Column (3) ), Y( :Column (4) ) ),
	Elements( Points( X, Y, Legend( 3 ) ))); 
gbr = report(gb);
gbr[AxisBox(1)] &amp;lt;&amp;lt; Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 );
gbr[AxisBox(1)] &amp;lt;&amp;lt; Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 );
gbr[AxisBox(2)] &amp;lt;&amp;lt; Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 );
gbr[AxisBox(2)] &amp;lt;&amp;lt; Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The details on how to modify the Display Tree output can be found in the Scripting Guide.&amp;nbsp; All of the messages that can be sent to the display objects are listed with definitions and examples in the Scripting Index.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:10:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-Ref-Line-not-working-if-axes-names-are-supplied-from-outside/m-p/643037#M83976</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-15T17:10:47Z</dc:date>
    </item>
  </channel>
</rss>

