<?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 What graph do I need? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38696#M1232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm new to creating graphs in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a graph which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On x-ax: months&lt;/P&gt;&lt;P&gt;I need two Y-axes: on the left measure A, on the right measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need bars for measure A, a line with at each month a square for Measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a dotted line for the median of measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last i need an average of measure A for the last year which is also represented as a bar in the graph. Is this possible in the graph or better to calculate up front?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my main question is: what kind of graph do I have to start with? An example would be nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 08:43:10 GMT</pubDate>
    <dc:creator>Filipvdr</dc:creator>
    <dc:date>2012-03-21T08:43:10Z</dc:date>
    <item>
      <title>What graph do I need?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38696#M1232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm new to creating graphs in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a graph which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On x-ax: months&lt;/P&gt;&lt;P&gt;I need two Y-axes: on the left measure A, on the right measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need bars for measure A, a line with at each month a square for Measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a dotted line for the median of measure B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last i need an average of measure A for the last year which is also represented as a bar in the graph. Is this possible in the graph or better to calculate up front?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my main question is: what kind of graph do I have to start with? An example would be nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 08:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38696#M1232</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2012-03-21T08:43:10Z</dc:date>
    </item>
    <item>
      <title>What graph do I need?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38697#M1233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably start with a bar-line graph.&amp;nbsp; You can either add additional plots or annotate the chart to create the look you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robslink.com/SAS/democd45/gblstock_info.htm"&gt;http://robslink.com/SAS/democd45/gblstock_info.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 11:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38697#M1233</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2012-03-21T11:56:50Z</dc:date>
    </item>
    <item>
      <title>What graph do I need?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38698#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, this comes quite near of what i have to use... Can you tell me how I can sort on date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=('Volume (%)') order=(0 to 200 by 50) minor=none;&lt;BR /&gt;axis2 label=('Tat (DAYS)') order=(0 to 7 by 1) minor=none;&lt;BR /&gt;axis3 label=('Month');&lt;BR /&gt;axis3 order=("01JAN2010"d to "01MAR2011"d by month);&lt;/P&gt;&lt;P&gt;proc gbarline data=graph;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bar month / discrete&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sumvar=RQPV raxis=axis1 maxis=axis3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width=15 des='' name="Test" ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; plot / &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sumvar=TAT raxis=axis2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 14:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38698#M1234</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2012-03-21T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: What graph do I need?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38699#M1235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how to get started with a few lines in PROC SGPLOT:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/64778/HTML/default/viewer.htm#n1mp0swy0atvzun1oeqlkrg8d89o.htm"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/64778/HTML/default/viewer.htm#n1mp0swy0atvzun1oeqlkrg8d89o.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 14:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38699#M1235</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-03-21T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: What graph do I need?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38700#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Filipvdr wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, this comes quite near of what i have to use... Can you tell me how I can sort on date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;if you have a date variable the use Proc sort data=graph; by &amp;lt;date variable&amp;gt;;run; If you want different bars for Jan 2010, Jan 2011, Feb 2010 and Feb 2011 your variable MONTH is likely not to quite get you there unless MONTH includes a year component. A SAS date variable using a format of MONYY. or MMYY. might work better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code would need changes of :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bar &amp;lt;datevariable&amp;gt; /&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; format &amp;lt;datevariable&amp;gt; MONYY.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 20:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/What-graph-do-I-need/m-p/38700#M1236</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-03-21T20:44:12Z</dc:date>
    </item>
  </channel>
</rss>

