<?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: Plotting a series on quarter and year in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882467#M23919</link>
    <description>&lt;P&gt;Here is one way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=sashelp.prdsale;
panelby year / layout=columnlattice noheaderborder colheaderpos=bottom novarname;
colaxis display=(nolabel) values=(1 2 3 4) valuesdisplay=("Q1" "Q2" "Q3" "Q4");
vline quarter / response=actual markers;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your case, you have Q1-Q4 in your data instead of 1-4, so you can drop the VALUES and VALUESDISPLAY option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 16:04:52 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2023-06-26T16:04:52Z</dc:date>
    <item>
      <title>Plotting a series on quarter and year</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882463#M23918</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to plot a series of revenue data on quarter and year using proc sgplot. The data I have is like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Quarter&lt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lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Q3&lt;/TD&gt;&lt;TD&gt;3,721&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Q4&lt;/TD&gt;&lt;TD&gt;5,478&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel, I can make a series like the following:&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="chart.png" style="width: 481px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85397i0B49D849D2A57EF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="chart.png" alt="chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can't figure out how to make X axis having quarter and year using proc sgplot like it did in Excel. Any tricks here please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882463#M23918</guid>
      <dc:creator>brokenpc1</dc:creator>
      <dc:date>2023-06-26T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a series on quarter and year</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882467#M23919</link>
      <description>&lt;P&gt;Here is one way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=sashelp.prdsale;
panelby year / layout=columnlattice noheaderborder colheaderpos=bottom novarname;
colaxis display=(nolabel) values=(1 2 3 4) valuesdisplay=("Q1" "Q2" "Q3" "Q4");
vline quarter / response=actual markers;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your case, you have Q1-Q4 in your data instead of 1-4, so you can drop the VALUES and VALUESDISPLAY option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882467#M23919</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-06-26T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a series on quarter and year</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882470#M23920</link>
      <description>SGPANEL, with yearly 'panels' is probably the easiest method.&lt;BR /&gt;&lt;BR /&gt;How to move header to bottom and format it:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/X-axis-labeling-with-two-variables-sgplot/td-p/413669" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/X-axis-labeling-with-two-variables-sgplot/td-p/413669&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;How to get a line graph:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n17inxbz8ldbcen145mwnmlqe6nv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n17inxbz8ldbcen145mwnmlqe6nv.htm&lt;/A&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882470#M23920</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-26T16:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a series on quarter and year</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882602#M23922</link>
      <description>&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Creating-a-line-graph-using-SG-plot-with-multiple-x-axis-month/td-p/873763" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Creating-a-line-graph-using-SG-plot-with-multiple-x-axis-month/td-p/873763&lt;/A&gt;</description>
      <pubDate>Tue, 27 Jun 2023 11:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/882602#M23922</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-06-27T11:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a series on quarter and year</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/883195#M23932</link>
      <description>&lt;P&gt;Thank you all for answering my question! I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s answer is most relevant to my situation, although I still don't know how to put year under months, but yeah, it's almost there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-a-series-on-quarter-and-year/m-p/883195#M23932</guid>
      <dc:creator>brokenpc1</dc:creator>
      <dc:date>2023-07-01T15:32:31Z</dc:date>
    </item>
  </channel>
</rss>

