<?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 Convert Date to a format used for chart reference lines in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Convert-Date-to-a-format-used-for-chart-reference-lines/m-p/710854#M89454</link>
    <description>&lt;P&gt;I want to take a list of dates from one table and use them as reference lines in an X by Y with Date as the X axis.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;The date formats are in this format from a table:&amp;nbsp;12/18/2023 14:14.&amp;nbsp; I would also like to add the label to each line from the same table.&amp;nbsp; In this case it is&amp;nbsp;EPOXI MT25700-02&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The script for the chart shows what I would like be able to add from a table to the chart as reference lines.&amp;nbsp; &amp;nbsp;I would like to take the list of dates and lot numbers from a separate table and make them reference lines in a chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(
	Y(:Value),
	X(:CreatedDateTime),
	Where(
		:ValueName == "Dispense Weight Chec" &amp;amp; :Site == "SAN" &amp;amp; :ProcessName ==
		"CLOUE Unload Station" &amp;amp; :EQNumber == "EQ-902280-001"
	),
	SendToReport(
		Dispatch(
			{},
			"CreatedDateTime",
			ScaleBox,
			{Add Ref Line(3785753640, "Solid", "Black", "EPOXI MT25700-02", 1)}
		),
		Dispatch({}, "Bivar Plot", FrameBox, {Frame Size(910, 194)})
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 Dec 2023 07:45:48 GMT</pubDate>
    <dc:creator>cjackso21</dc:creator>
    <dc:date>2023-12-20T07:45:48Z</dc:date>
    <item>
      <title>Convert Date to a format used for chart reference lines</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-Date-to-a-format-used-for-chart-reference-lines/m-p/710854#M89454</link>
      <description>&lt;P&gt;I want to take a list of dates from one table and use them as reference lines in an X by Y with Date as the X axis.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;The date formats are in this format from a table:&amp;nbsp;12/18/2023 14:14.&amp;nbsp; I would also like to add the label to each line from the same table.&amp;nbsp; In this case it is&amp;nbsp;EPOXI MT25700-02&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The script for the chart shows what I would like be able to add from a table to the chart as reference lines.&amp;nbsp; &amp;nbsp;I would like to take the list of dates and lot numbers from a separate table and make them reference lines in a chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(
	Y(:Value),
	X(:CreatedDateTime),
	Where(
		:ValueName == "Dispense Weight Chec" &amp;amp; :Site == "SAN" &amp;amp; :ProcessName ==
		"CLOUE Unload Station" &amp;amp; :EQNumber == "EQ-902280-001"
	),
	SendToReport(
		Dispatch(
			{},
			"CreatedDateTime",
			ScaleBox,
			{Add Ref Line(3785753640, "Solid", "Black", "EPOXI MT25700-02", 1)}
		),
		Dispatch({}, "Bivar Plot", FrameBox, {Frame Size(910, 194)})
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Dec 2023 07:45:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-Date-to-a-format-used-for-chart-reference-lines/m-p/710854#M89454</guid>
      <dc:creator>cjackso21</dc:creator>
      <dc:date>2023-12-20T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to a format used for chart reference lines</title>
      <link>https://community.jmp.com/t5/Discussions/Convert-Date-to-a-format-used-for-chart-reference-lines/m-p/710950#M89460</link>
      <description>&lt;P&gt;If this is the form of the graph that you want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1703043603811.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59909i6B5C2CE5D7976E32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1703043603811.png" alt="txnelson_0-1703043603811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL that produces the above graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Data Table( "Weight Checks for JP" ) &amp;lt;&amp;lt; Bivariate(
	Y( :Value ),
	X( :CreatedDateTime ),
	Where(
		:ValueName == "Dispense Weight Chec" &amp;amp; :Site == "SAN" &amp;amp; :ProcessName ==
		"CLOUE Unload Station" &amp;amp; :EQNumber == "EQ-902280-001"
	),
	SendToReport(
		Dispatch(
			{},
			"CreatedDateTime",
			ScaleBox,
			{Label Row( Label Orientation( "Angled" ) )}
		),
		Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 910, 194 )} )
	)
);
BivR = Current Report()[Outline Box( 1 ), AxisBox( 2 )];
For( i = 1, i &amp;lt;= N Rows( Data Table( "Bottle Change Data" ) ), i++,
	BivR &amp;lt;&amp;lt; Add Ref Line(
		Informat( Data Table( "Bottle Change Data" ):Date_Time[i], "m/d/y h:m" ),
		"Solid",
		"Black",
		Data Table( "Bottle Change Data" ):Description[i] || "  " ||
		Data Table( "Bottle Change Data" ):Part_Number[i],
		1
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please use the &amp;lt;JSL&amp;gt; icon at the top of the Discussion Entry area when you are entering JSL.&amp;nbsp; It makes the reading of the code much easier&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 03:41:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Convert-Date-to-a-format-used-for-chart-reference-lines/m-p/710950#M89460</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-20T03:41:54Z</dc:date>
    </item>
  </channel>
</rss>

