<?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: Highlight certain points on control chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800895#M97639</link>
    <description>&lt;P&gt;Take values from your table and compare them to values of xs and ys (there are unlimited amount of ways of performing the comparison). It seems like your data also has single duplicate value which could potentially cause issues, maybe you should perform the comparison on the ys instead of the data table?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;r = Loc(ys &amp;gt; 0.007);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Sep 2024 16:07:24 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-09-20T16:07:24Z</dc:date>
    <item>
      <title>Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799260#M97516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to highlight data points &amp;lt;= the limit values, 98% in this case, but something doesn't seem to work.&amp;nbsp;I'm not sure where I'm making the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1726494441170.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68315i7B3D2337E7123C30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1726494441170.png" alt="Jackie__0-1726494441170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my jsl code:&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 );
dt2 = Current Data Table();&lt;BR /&gt;
dt2 &amp;lt;&amp;lt; begin data update;
fairows = dt2 &amp;lt;&amp;lt; get rows where( As Column( "1" ) &amp;lt;= 0.98 );
dt2 &amp;lt;&amp;lt; end data update;&lt;BR /&gt;
vc1 = dt2 &amp;lt;&amp;lt; Control Chart Builder(
	Size( 890, 273 ),
	Show Two Shewhart Charts( 0 ),
	Test Excluded Subgroups( 0 ),
	Include Missing Categories( 0 ),
	Show Excluded Region( 0 ),
	Show Limit Summaries( 0 ),
	Variables( Subgroup( :Date ), Y( :"1"n ) ),
	Chart(
		Points( Statistic( "Individual" ) ),
		Limits( Sigma( "Moving Range" ), Show Center Line( 0 ), Show Lower Limit( 0 ), Show Upper Limit( 0 ) )
	),
	Show Control Panel( 0 ),
	SendToReport(
		Dispatch( {}, "Control Chart Builder", OutlineBox, {Set Title( "1" )} ),
		Dispatch( {}, "Date", ScaleBox, {Label Row( {Label Orientation( "Angled" ), Set Font Size( 8 )} )} ),
		Dispatch(
			{},
			"1",
			ScaleBox,
			{Add Ref Line( 0.928901607373389, "Dotted", "Medium Light Magenta", "Suggested (92.89%)", 3 ),
			Add Ref Line( 0.897380548253792, "Solid", "Orange", "4.5 sigma(89.74%)", 2 ), Add Ref Line(
				0.865859489134196, "Solid", "Medium Dark Green", "6 sigma(86.59%)", 2
			), Add Ref Line( 0.9, "Dense Dash", "Medium Dark Red", "90.00%", 3 )}
		),
		Dispatch( {}, "graph display 1 title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Subgroup display 1 title", TextEditBox, {Set Text( "" ), Set Font Size( 10 ), Set Font Style( "Bold" )} ),
		Dispatch( {}, "Y display 1 title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Control Chart Builder", FrameBox, {Background Color( -15658734 ), Marker Size( 2 ), Marker Drawing Mode( "Outlined" )} )
	)
);



//Highlight data points &amp;lt; 98%
Eval(

	Eval Expr(

		Report( vc1 )[Framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
			Marker(
				Marker Size( 10 );
				Color State( "red" );,
				Expr( :"1"n[fairows] ),
				Expr( :Date[fairows] )
			)
		)

	)

);&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, 16 Sep 2024 16:02:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799260#M97516</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-16T16:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799321#M97527</link>
      <description>&lt;P&gt;Here is one option which might do what you are looking for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/data.jmp");

fairows = dt &amp;lt;&amp;lt; get rows where(As Column("1") &amp;lt;= 0.98);

vc1 = dt &amp;lt;&amp;lt; Control Chart Builder(
	Size(890, 273),
	Show Two Shewhart Charts(0),
	Test Excluded Subgroups(0),
	Include Missing Categories(0),
	Show Excluded Region(0),
	Show Limit Summaries(0),
	Variables(Subgroup(:Date), Y(:"1"n)),
	Chart(Points(Statistic("Individual")), Limits(Sigma("Moving Range"), Show Center Line(0), Show Lower Limit(0), Show Upper Limit(0))),
	Show Control Panel(0),
	SendToReport(
		Dispatch({}, "Control Chart Builder", OutlineBox, {Set Title("1")}),
		Dispatch({}, "Date", ScaleBox, {Label Row({Label Orientation("Angled"), Set Font Size(8)})}),
		Dispatch({}, "1", ScaleBox,
			{Add Ref Line(0.928901607373389, "Dotted", "Medium Light Magenta", "Suggested (92.89%)", 3),
			Add Ref Line(0.897380548253792, "Solid", "Orange", "4.5 sigma(89.74%)", 2), Add Ref Line(
				0.865859489134196, "Solid", "Medium Dark Green", "6 sigma(86.59%)", 2
			), Add Ref Line(0.9, "Dense Dash", "Medium Dark Red", "90.00%", 3)}
		),
		Dispatch({}, "graph display 1 title", TextEditBox, {Set Text("")}),
		Dispatch({}, "Subgroup display 1 title", TextEditBox, {Set Text(""), Set Font Size(10), Set Font Style("Bold")}),
		Dispatch({}, "Y display 1 title", TextEditBox, {Set Text("")}),
		Dispatch({}, "Control Chart Builder", FrameBox, {Background Color(-15658734), Marker Size(2), Marker Drawing Mode("Outlined")})
	)
);

ms = Report(vc1)[FrameBox(1)] &amp;lt;&amp;lt; Find Seg(MarkerSeg(1));
xs = ms &amp;lt;&amp;lt; Get X Values;
ys = ms &amp;lt;&amp;lt; Get Y Values;

Eval(Eval Expr(
	Report(vc1)[Framebox(1)] &amp;lt;&amp;lt; add graphics script(
		Marker Size(10);
		Marker(
			Color State("red"),
			Expr(xs[fairows]),
			Expr(ys[fairows])
		)
	);
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2024 17:05:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799321#M97527</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-16T17:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799350#M97528</link>
      <description>&lt;P&gt;Thanks Jarmo!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 17:40:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799350#M97528</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-16T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799355#M97529</link>
      <description>&lt;P&gt;Other good option would be to create new column your table and add row states based on that (you can also use it as row legend). This method does not allow you to modify marker size that easily though&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1726509298738.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68335iB552AA522227F4E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1726509298738.png" alt="jthi_3-1726509298738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1726509291891.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68334iFAA68340E6255D5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1726509291891.png" alt="jthi_2-1726509291891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 17:55:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/799355#M97529</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-16T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800877#M97635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, it's highlighting values less than 0.007. However, the condition for getting rows is set to '&amp;gt;'. Something is not correct with xs and ys. Also, I don't want to color rows because it will reflect in another graph. Graphic script is the preference&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1726842539856.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68490iDBA9618EF2CFAECA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1726842539856.png" alt="Jackie__0-1726842539856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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 = Current Data Table();
fairows = dt &amp;lt;&amp;lt; get rows where( As Column( "861" ) &amp;gt; 0.007 );

vc1 = dt &amp;lt;&amp;lt; Control Chart Builder(
	Size( 890, 273 ),
	Show Two Shewhart Charts( 0 ),
	Test Excluded Subgroups( 0 ),
	Include Missing Categories( 0 ),
	Show Excluded Region( 0 ),
	Show Limit Summaries( 0 ),
	Variables( Subgroup( :Date ), Y( :"861"n ) ),
	Chart( Points( Statistic( "Average" ) ), Limits( Sigma( "Moving Range" ), Show Center Line( 0 ), Show Lower Limit( 0 ), Show Upper Limit( 0 ) ) ),
	Show Control Panel( 0 ),
	SendToReport(
		Dispatch(
			{},
			"Control Chart Builder",
			OutlineBox,
			{Set Title( "861                                                                       Percent Fail: 1.45%" )}
		),
		Dispatch( {}, "Date", ScaleBox, {Label Row( {Label Orientation( "Angled" ), Set Font Size( 8 )} )} ),
		Dispatch(
			{},
			"861",
			ScaleBox,
			{Add Ref Line( 0.00435435825878142, "Solid", "Blue", "3 sigma(0.44%)", 2 ), Add Ref Line(
				0.00653153738817213, "Dotted", "Medium Light Magenta", "Suggested (0.65%)", 3
			), Add Ref Line( 0.00870871651756283, "Solid", "Medium Dark Green", "6 sigma(0.87%)", 2 ), Add Ref Line(
				0.007, "Dense Dash", "Medium Dark Red", "0.70%", 3
			)}
		),
		Dispatch( {}, "graph display 1 title", TextEditBox, {Set Text( "" )} ),
		Dispatch( {}, "Subgroup display 1 title", TextEditBox, {Set Text( "" ), Set Font Size( 10 ), Set Font Style( "Bold" )} ),
		Dispatch( {}, "Y display 1 title", TextEditBox, {Set Text( "" )} )
	)
);

ms = Report( vc1 )[FrameBox( 1 )] &amp;lt;&amp;lt; Find Seg( Marker Seg( 1 ) );
xs = ms &amp;lt;&amp;lt; Get X Values;
ys = ms &amp;lt;&amp;lt; Get Y Values;

Eval(
	Eval Expr(
		Report( vc1 )[Framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
			Marker Size( 10 );
			Marker( Color State( "red" ), Expr( xs[fairows] ), Expr( ys[fairows] ) );
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 14:30:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800877#M97635</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-20T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800879#M97636</link>
      <description>&lt;P&gt;You have to compare if they match the same rows. If not you might first want to &lt;STRONG&gt;re-order your data&lt;/STRONG&gt;, get rows of interest, build control chart and then add the markers.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 15:01:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800879#M97636</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-20T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800884#M97637</link>
      <description>&lt;P&gt;how can I compare?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 15:51:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800884#M97637</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-09-20T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight certain points on control chart</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800895#M97639</link>
      <description>&lt;P&gt;Take values from your table and compare them to values of xs and ys (there are unlimited amount of ways of performing the comparison). It seems like your data also has single duplicate value which could potentially cause issues, maybe you should perform the comparison on the ys instead of the data table?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;r = Loc(ys &amp;gt; 0.007);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Sep 2024 16:07:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-certain-points-on-control-chart/m-p/800895#M97639</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-20T16:07:24Z</dc:date>
    </item>
  </channel>
</rss>

