<?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 reference line with different values for each chart in a Variability Plot and save in interactive html in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-reference-line-with-different-values-for-each-chart-in-a/m-p/239031#M47231</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an interactive html of a variability plot graph with multiple charts in the same plot ( by(:&amp;lt;variable&amp;gt;)) and add unique reference lines with different values for each of the individual charts. Is there anyway we can achieve this with JSL? Currently I can plot and save as interactive html with JSL but unable to tailor the reference line values based on the value of the "by" parameter in the Var plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Prithvee&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:26:00 GMT</pubDate>
    <dc:creator>psundar6</dc:creator>
    <dc:date>2023-06-09T23:26:00Z</dc:date>
    <item>
      <title>Add reference line with different values for each chart in a Variability Plot and save in interactive html</title>
      <link>https://community.jmp.com/t5/Discussions/Add-reference-line-with-different-values-for-each-chart-in-a/m-p/239031#M47231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an interactive html of a variability plot graph with multiple charts in the same plot ( by(:&amp;lt;variable&amp;gt;)) and add unique reference lines with different values for each of the individual charts. Is there anyway we can achieve this with JSL? Currently I can plot and save as interactive html with JSL but unable to tailor the reference line values based on the value of the "by" parameter in the Var plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Prithvee&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:26:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-reference-line-with-different-values-for-each-chart-in-a/m-p/239031#M47231</guid>
      <dc:creator>psundar6</dc:creator>
      <dc:date>2023-06-09T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add reference line with different values for each chart in a Variability Plot and save in interactive html</title>
      <link>https://community.jmp.com/t5/Discussions/Add-reference-line-with-different-values-for-each-chart-in-a/m-p/239079#M47247</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14978"&gt;@psundar6&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your request lacked specific details. Are you having a probem with the sccript or syntax not working, or are you not familiar with customizing graphs via JSL. The simplest method to learn syntax is to customize a simple plot via the JMP UI, then save the script and study the syntax looking up the specific commands in the &lt;STRONG&gt;Scriptng Index&lt;/STRONG&gt; or the &lt;STRONG&gt;Scripting Guide&lt;/STRONG&gt;. If you are unaware of the JMP report hierarchical display box structure, the script below might not make sense to you.&amp;nbsp; If you provide more details of what is causing problems, the community can share their best references to learn more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example script followed by a screen shot of the Interactive HTML page.&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/Big Class.jmp" );

//find the min max and mean of weight by sex

Summarize( grp = By( :sex ), xb = Mean( :weight ), mx = Maximum( :weight ), mn = Minimum( :weight ) );

//xb, mx and mn are vectors with 2 values.  The order of By in Summarize is the order Var Chart By

vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :weight ),
	X( :age ),
	Connect Cell Means( 1 ),
	Std Dev Chart( 0 ),
	By( :sex )
);

//error check - do nothings if not matched
If( N Items( vc ) == N Row( xb ),
	For( i = 1, i &amp;lt;= N Items( vc ), i++,
		Report( vc[i] )[Framebox( 1 )] &amp;lt;&amp;lt; DispatchSeg( CustomStreamSeg( 3 ), {Line Width( 2 )} );
		Report( vc[i] )[AxisBox( 1 )] &amp;lt;&amp;lt; {Add Ref Line( mx[i], "Dotted", "Medium Dark Red", "max", 2 ),
		Add Ref Line( xb[i], "Solid", "Black", "mean", 3 ), Add Ref Line(
			mn[i],
			"Dotted",
			"Medium Dark Red",
			"min",
			2
		)};
	)
);

(vc[1] &amp;lt;&amp;lt; Top Parent) &amp;lt;&amp;lt; Save Interactive HTML( "C:/temp/CustomVCLimits.htm" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 558px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20710iD75A0A2ED87A6D60/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 11:01:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-reference-line-with-different-values-for-each-chart-in-a/m-p/239079#M47247</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-12-19T11:01:43Z</dc:date>
    </item>
  </channel>
</rss>

