<?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: To  fill areas based on the value of the Y variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/211399#M42343</link>
    <description>&lt;P&gt;If you are planning to save to Interactive HTML or publish to JMP public, use the first method.&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 20:24:39 GMT</pubDate>
    <dc:creator>josh_markwordt</dc:creator>
    <dc:date>2019-05-31T20:24:39Z</dc:date>
    <item>
      <title>To  fill areas based on the value of the Y variable</title>
      <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210605#M42160</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Could JMP do the graph like this?&lt;/P&gt;&lt;P&gt;I need to fill the areas above certain values on Y axis&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="擷取.JPG" style="width: 652px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17430iCCDB3603C11F4BFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="擷取.JPG" alt="擷取.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2019 04:36:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210605#M42160</guid>
      <dc:creator>EricTsai</dc:creator>
      <dc:date>2019-05-25T04:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: To  fill areas based on the value of the Y variable</title>
      <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210629#M42164</link>
      <description>I could not figure out how to make Graph Builder get the chart you want. Maybe another Community member with stronger Graph Builder skills can do that.  However, JMP can draw this chart by using JSL to create the desired graph from scratch, or by adding JSL to an existing graph platform, to give it the finishing touches.</description>
      <pubDate>Sat, 25 May 2019 16:00:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210629#M42164</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-25T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: To  fill areas based on the value of the Y variable</title>
      <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210631#M42165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12965"&gt;@EricTsai&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Unless you wish to go a scripting route, I can think of two ways to get Graph Builder to create this plot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Use a Stacked Area chart using two columns, one that indicates the amount of Y up to your cut off point, and another that indicates the amount of Y beyond your cutoff point (you can create these columns with simple column formulas, see attached data table). Now, you can now use both of these columns as your Y (drag them both to the Y-axis in Graph Builder simultaneously), select the Area plot on the element ribbon, and use "Stacked" under the Area Style on the left-hand side control panel. Add your X axis, and then your reference line by double-clicking the Y axis to enter Axis settings. Once you're finished, that will give you a plot such as this:&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-center" image-alt="salesbydate.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17432i42748CB4FD972577/image-size/large?v=v2&amp;amp;px=999" role="button" title="salesbydate.png" alt="salesbydate.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've attached a data table with the columns I'd need for these data with a cut-off of 180. I also saved a script for the graph so you can see how it was generated. If you need more detailed instructions for creating this plot I would be happy to provide them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Another way to do this which does not involve creating new columns is to plot your Y variable twice, one above and one below, and change the scale of each to meet at your cutpoint (I do it manually below, but double-clicking each Y axis to set it specifically is best).&amp;nbsp; Next, add the area plot, then right click &amp;gt; customize each to set the color you want for the polygon. Here's a quick video demonstrating that:&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-gzb3V1aDE6RwWQSLi3ME4qJsUE8dF6vZw980h606r634" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6064700991001" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-gzb3V1aDE6RwWQSLi3ME4qJsUE8dF6vZw980h606r634');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/gzb3V1aDE6RwWQSLi3ME4qJsUE8dF6vZ"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps get you closer!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2019 19:12:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210631#M42165</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-05-25T19:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: To  fill areas based on the value of the Y variable</title>
      <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210632#M42166</link>
      <description>&lt;P&gt;Thanksa a lot!!!!!&lt;/P&gt;&lt;P&gt;this is exactly what I want~&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2019 02:40:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/210632#M42166</guid>
      <dc:creator>EricTsai</dc:creator>
      <dc:date>2019-05-26T02:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: To  fill areas based on the value of the Y variable</title>
      <link>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/211399#M42343</link>
      <description>&lt;P&gt;If you are planning to save to Interactive HTML or publish to JMP public, use the first method.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 20:24:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-fill-areas-based-on-the-value-of-the-Y-variable/m-p/211399#M42343</guid>
      <dc:creator>josh_markwordt</dc:creator>
      <dc:date>2019-05-31T20:24:39Z</dc:date>
    </item>
  </channel>
</rss>

