<?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: Custom Reference Lines between defined x-Axis points in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-Reference-Lines-between-defined-x-Axis-points/m-p/688882#M87483</link>
    <description>&lt;P&gt;You can use Graphic Scripts&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(3)))
);

fb = Report(gb)[FrameBox(1)];
fb &amp;lt;&amp;lt; Add Graphics Script("Front", 
	Description("Line"), 
	Line([74 134], [55 68])
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Oct 2023 07:26:54 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-20T07:26:54Z</dc:date>
    <item>
      <title>Custom Reference Lines between defined x-Axis points</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Reference-Lines-between-defined-x-Axis-points/m-p/688877#M87482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to visualize data from production and want to implement reference lines to reflect the targets. The issue I face is, that the target changes due to product changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means, I not just need to define the y-value of the reference lines, but also the x-values. I tried by simply adding lines in the code, which did not led to the needed lines in the graph:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 1524, 884 ),
	Variables( X( :prod_day ), Y( :Result ) ),
	Elements( Points( X, Y, Legend( 5 ) ), Smoother( X, Y, Legend( 6 ) ) ),
	Elements(
		&lt;STRONG&gt;Line( X( 0, 81 ), Y( 13.37, 13.37), Color( "Black" ), Line Style( "Solid" ) ),
		Line( X(82, 99), Y(12, 12), Color( "Black"), Line Style( "Solid"))&lt;/STRONG&gt;
	),
	SendToReport(
		Dispatch(
			{},
			"prod_day",
			ScaleBox,
			{Min( -0.5 ), Max( 134 ), Inc( 10 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Result",
			ScaleBox,
			{Min( 2.75 ), Max( 7 ), Inc( 1 ), Minor Ticks( 1 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way, to add lines between two defined x-axis points?&lt;/P&gt;&lt;P&gt;I am using JMP Pro 17.0.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:18:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Reference-Lines-between-defined-x-Axis-points/m-p/688877#M87482</guid>
      <dc:creator>xjjrx</dc:creator>
      <dc:date>2023-10-20T07:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Reference Lines between defined x-Axis points</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Reference-Lines-between-defined-x-Axis-points/m-p/688882#M87483</link>
      <description>&lt;P&gt;You can use Graphic Scripts&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(3)))
);

fb = Report(gb)[FrameBox(1)];
fb &amp;lt;&amp;lt; Add Graphics Script("Front", 
	Description("Line"), 
	Line([74 134], [55 68])
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:26:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Reference-Lines-between-defined-x-Axis-points/m-p/688882#M87483</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-20T07:26:54Z</dc:date>
    </item>
  </channel>
</rss>

