<?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: How to create a graph with area filled in under the line in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333813#M11631</link>
    <description>It works. Thank you very much!</description>
    <pubDate>Fri, 17 Feb 2017 15:44:58 GMT</pubDate>
    <dc:creator>zhuxiaoyan1</dc:creator>
    <dc:date>2017-02-17T15:44:58Z</dc:date>
    <item>
      <title>How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333556#M11618</link>
      <description>&lt;P&gt;I want a&amp;nbsp;line with Pap on the x-axis and Avg on the y-axis. the value on x-axis and y-axis should be the same order as in the data. the value on the y-axis should be from 50000 to 35000 with 5000 apart. The area under the line needs to be filled.&amp;nbsp;&amp;nbsp;Any suggestions or ideas will be greatly appreciated!&lt;/P&gt;
&lt;P&gt;Avg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Pap&lt;/P&gt;
&lt;P&gt;$19,053.90&amp;nbsp;50294&lt;BR /&gt;$19,155.55&amp;nbsp;5J383&lt;BR /&gt;$19,371.27&amp;nbsp;5N916&lt;BR /&gt;$20,208.01&amp;nbsp;5SS32&lt;BR /&gt;$20,248.28&amp;nbsp;50382&lt;BR /&gt;$20,283.07&amp;nbsp;5K426&lt;BR /&gt;$20,325.72&amp;nbsp;5L390&lt;BR /&gt;$20,556.82&amp;nbsp;50601&lt;BR /&gt;$20,950.14&amp;nbsp;5N559&lt;BR /&gt;$21,083.23&amp;nbsp;53173&lt;BR /&gt;$21,126.84&amp;nbsp;51591&lt;BR /&gt;$21,323.31&amp;nbsp;5J277&lt;BR /&gt;$21,463.89&amp;nbsp;5L276&lt;BR /&gt;$21,519.23&amp;nbsp;51395&lt;BR /&gt;$21,555.70&amp;nbsp;5K402&lt;BR /&gt;$21,685.32&amp;nbsp;50824&lt;BR /&gt;$21,744.93&amp;nbsp;55106&lt;BR /&gt;$21,757.55&amp;nbsp;53322&lt;BR /&gt;$21,963.55&amp;nbsp;5L289&lt;BR /&gt;$22,044.51&amp;nbsp;50254&lt;BR /&gt;$22,217.93&amp;nbsp;55519&lt;BR /&gt;$22,325.57&amp;nbsp;5L433&lt;BR /&gt;$22,475.74&amp;nbsp;5J617&lt;BR /&gt;$22,853.99&amp;nbsp;53851&lt;BR /&gt;$23,074.72&amp;nbsp;5L432&lt;BR /&gt;$23,162.03&amp;nbsp;51900&lt;BR /&gt;$23,233.84&amp;nbsp;5M579&lt;BR /&gt;$23,962.97&amp;nbsp;55710&lt;BR /&gt;$24,627.27&amp;nbsp;51490&lt;BR /&gt;$24,851.93&amp;nbsp;5L807&lt;BR /&gt;$25,165.05&amp;nbsp;5P007&lt;BR /&gt;$25,293.85&amp;nbsp;99294&lt;BR /&gt;$25,313.81&amp;nbsp;53003&lt;BR /&gt;$25,539.16&amp;nbsp;53253&lt;BR /&gt;$25,572.13&amp;nbsp;5L190&lt;BR /&gt;$26,342.46&amp;nbsp;53503&lt;BR /&gt;$26,569.69&amp;nbsp;5N202&lt;BR /&gt;$26,774.96&amp;nbsp;54562&lt;BR /&gt;$27,094.48&amp;nbsp;5I155&lt;BR /&gt;$27,655.79&amp;nbsp;5K012&lt;BR /&gt;$27,682.86&amp;nbsp;53618&lt;BR /&gt;$27,731.45&amp;nbsp;52297&lt;BR /&gt;$28,274.90&amp;nbsp;5K982&lt;BR /&gt;$30,011.96&amp;nbsp;5N847&lt;BR /&gt;$30,835.18&amp;nbsp;5H055&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333556#M11618</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-02-16T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333580#M11619</link>
      <description>&lt;P&gt;See the 2D area plot on this page:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd7/aaaindex.htm" target="_blank"&gt;http://robslink.com/SAS/democd7/aaaindex.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I like to start here when creating graphs, since it has both the code and image. One drawback is that it uses GPLOT procedures when SG Procs are more common these days, SGPLOT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333580#M11619</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-16T20:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333583#M11620</link>
      <description>&lt;P&gt;With SGPLOT, you can try using the BAND plot, with constant value for the bottom edge.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333583#M11620</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-02-16T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333586#M11621</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp;SGPLOT with BAND works like a charm, set the lower bound to 0 if you want the area filled in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting sample data, preferably in a data step in the future, which is the first step in my code below.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    informat value comma. cat $5.;
    format value dollar20.2;
    input value cat;
    start=0;
    cards;
$19,053.90 50294
$19,155.55 5J383
$19,371.27 5N916
$20,208.01 5SS32
$20,248.28 50382
$20,283.07 5K426
$20,325.72 5L390
$20,556.82 50601
$20,950.14 5N559
$21,083.23 53173
$21,126.84 51591
$21,323.31 5J277
$21,463.89 5L276
$21,519.23 51395
$21,555.70 5K402
$21,685.32 50824
$21,744.93 55106
$21,757.55 53322
$21,963.55 5L289
$22,044.51 50254
$22,217.93 55519
$22,325.57 5L433
$22,475.74 5J617
$22,853.99 53851
$23,074.72 5L432
$23,162.03 51900
$23,233.84 5M579
$23,962.97 55710
$24,627.27 51490
$24,851.93 5L807
$25,165.05 5P007
$25,293.85 99294
$25,313.81 53003
$25,539.16 53253
$25,572.13 5L190
$26,342.46 53503
$26,569.69 5N202
$26,774.96 54562
$27,094.48 5I155
$27,655.79 5K012
$27,682.86 53618
$27,731.45 52297
$28,274.90 5K982
$30,011.96 5N847
$30,835.18 5H055
;
run;

proc sgplot data=have;
    band x=cat lower=start upper=value;
    yaxis values=(0 to 35000 by 5000);
    label value='Avg Amount' cat='PAP';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333586#M11621</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-16T21:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333592#M11622</link>
      <description>&lt;P&gt;Cool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the x-axis is really discrete, maybe a VBARPARM would work better? &amp;nbsp;Not sure what "slope" means between to category values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=have;&lt;BR /&gt; vbarparm category=cat response=value / barwidth=1 fill nooutline;&lt;BR /&gt; yaxis values=(0 to 35000 by 5000);&lt;BR /&gt; xaxis valuesrotate=vertical valueattrs=(size=6) discreteorder=data;&lt;BR /&gt; label value='Avg Amount' cat='PAP';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333592#M11622</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-02-16T21:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333595#M11623</link>
      <description>&lt;P&gt;It was sorted continuously so I'm assuming some ranking? I would suspect, your correct and either VBARPARM or HBARPARM would be a better graphing modality. I would suggest HBARPARM as it makes the categories more legible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333595#M11623</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-16T21:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333799#M11627</link>
      <description>&lt;P&gt;Thanks very much for the help! I got the graph. But my xaxis is croweded with all the values of Pap. I want to get rid off it and just keep the label "PAP". How should I do that? Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333799#M11627</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-02-17T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333802#M11629</link>
      <description>&lt;P&gt;On the XAXIS statement, add: &amp;nbsp;ddisplay=(noticks novalues)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333802#M11629</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-17T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333813#M11631</link>
      <description>It works. Thank you very much!</description>
      <pubDate>Fri, 17 Feb 2017 15:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333813#M11631</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-02-17T15:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a graph with area filled in under the line</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333833#M11633</link>
      <description>good suggestion. Another question. How to change the font and size of the labels? Thanks!</description>
      <pubDate>Fri, 17 Feb 2017 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-graph-with-area-filled-in-under-the-line/m-p/333833#M11633</guid>
      <dc:creator>zhuxiaoyan1</dc:creator>
      <dc:date>2017-02-17T16:20:49Z</dc:date>
    </item>
  </channel>
</rss>

