<?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: Shading in an area on a time-series chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43741#M25287</link>
    <description>&lt;P&gt;Nice one Jerry, not seen that check box before.&lt;/P&gt;
&lt;P&gt;The code example that I provide I usually use for confidence intervals, but for a rectangular range, like you said can be done interactively, or can be done like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rep = gb &amp;lt;&amp;lt; Report;
rep[AxisBox(2)] &amp;lt;&amp;lt; Add Ref Line( {-3, 3}, "Solid", "Medium Light Green", "", 1, 0.25 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Aug 2017 07:57:16 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2017-08-29T07:57:16Z</dc:date>
    <item>
      <title>Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43685#M25271</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;If I plot a simple time-series of my data I will often gain insight from control limits and also spec limits on the graph. (Simple visualisations of the Voice of the Process and the Voice of the Customer).&lt;/P&gt;&lt;P&gt;With control charts we can "Shade Zones" which can help - I like this feature.&lt;/P&gt;&lt;P&gt;Is there a simple way to do something similar using Graph Builder?&lt;/P&gt;&lt;P&gt;In the attached file it is easy enough to add a pair of horizontal lines which you find at -3 and +3. Is there a simple way using scripting to shade in between two such horizontal lines? How would I shade in the area between -3 and +3 on such a graph to show this is a region to focus on when making sense of the data?&lt;/P&gt;&lt;P&gt;Would be great if somebody could pass on some advice.&lt;/P&gt;&lt;P&gt;Scott.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:39:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43685#M25271</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2017-08-28T14:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43691#M25277</link>
      <description>&lt;P&gt;Through JSL you can add a graphics script to customise the graph, so that it shows a shaded polygon:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Size( 1659, 932 ),
	Show Control Panel( 0 ),
	Variables( X( :Series ), Y( :Data ) ),
	Elements( Points( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Series",
			ScaleBox,
			{Min( 0 ), Max( 102 ), Inc( 10 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Data",
			ScaleBox,
			{Min( -4 ), Max( 4 ), Inc( 1 ), Minor Ticks( 1 ),
			Add Ref Line( 3, "Solid", "Black", "", 1 ),
			Add Ref Line( -3, "Solid", "Black", "", 1 )}
		)
	)
);

// create a shaded region
rep = gb &amp;lt;&amp;lt; Report;
x = {};
x[1] = rep[AxisBox(1)] &amp;lt;&amp;lt; Get Min;
x[2] = rep[AxisBox(1)] &amp;lt;&amp;lt; Get Max;
x[3] = x[2];
x[4] = x[1];
y = {-3,-3,3,3};
fb = rep[FrameBox(1)];
fb &amp;lt;&amp;lt; Add Graphics Script(
	Transparency(0.1);
	Fill Color("Green"); 
	Polygon( Matrix(x), matrix(y) )
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 18:13:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43691#M25277</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-08-28T18:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43713#M25283</link>
      <description>&lt;P&gt;David - Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 21:21:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43713#M25283</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2017-08-28T21:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43738#M25285</link>
      <description>As a non-scripting alternative for those with JMP version 12 or higher, there is an option for allowing ranges for reference lines in the Y-axis Settings dialog (double-click the y-axis). Checking the "Allow Ranges" box will provide number boxes for inputting the min and max of the range and will allow you to choose a color for that range.</description>
      <pubDate>Mon, 28 Aug 2017 22:58:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43738#M25285</guid>
      <dc:creator>jerry_cooper</dc:creator>
      <dc:date>2017-08-28T22:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43741#M25287</link>
      <description>&lt;P&gt;Nice one Jerry, not seen that check box before.&lt;/P&gt;
&lt;P&gt;The code example that I provide I usually use for confidence intervals, but for a rectangular range, like you said can be done interactively, or can be done like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rep = gb &amp;lt;&amp;lt; Report;
rep[AxisBox(2)] &amp;lt;&amp;lt; Add Ref Line( {-3, 3}, "Solid", "Medium Light Green", "", 1, 0.25 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:57:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43741#M25287</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-08-29T07:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shading in an area on a time-series chart</title>
      <link>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43823#M25314</link>
      <description>&lt;P&gt;Thanks, Jerry. This is a great option which I didn't know about. I've already used it a few times!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 20:38:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Shading-in-an-area-on-a-time-series-chart/m-p/43823#M25314</guid>
      <dc:creator>scottahindle</dc:creator>
      <dc:date>2017-08-30T20:38:15Z</dc:date>
    </item>
  </channel>
</rss>

