<?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: Time series using Proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289176#M10224</link>
    <description>&lt;P&gt;You need to sort the data by the X variable. &amp;nbsp;There is not a unique way to plot data that has duplicate X values, but in your example you are plotting the high value before the low values, so run the following before you call PROC SGPLOT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=work.limits;
   by time_stamp test_value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Aug 2016 12:13:14 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-08-03T12:13:14Z</dc:date>
    <item>
      <title>Time series using Proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289168#M10222</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create timeseries graph using proc sgplot but in my case there are multiple records available for single date.this causes following graph to be formed.Here i have two rows for 21 jan .&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4409i706DC02898010E88/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2016-08-03 13_58_56-Project - SAS Enterprise Guide.png" title="2016-08-03 13_58_56-Project - SAS Enterprise Guide.png" /&gt;&lt;/P&gt;&lt;P&gt;instead i would like to make graph like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4410i5D998483325D36B8/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2016-08-03 13_57_58-Microsoft Excel - SAS Export Jan Mar 2016 and Calculations.png" title="2016-08-03 13_57_58-Microsoft Excel - SAS Export Jan Mar 2016 and Calculations.png" /&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get 2nd graph?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=work.limits;&lt;BR /&gt;series x=time_stamp y=test_value/markers ;&lt;BR /&gt;refline &amp;amp;bin_lsl/axis=Y label= 'LSL&amp;amp;bin_lsl.' lineattrs=(color ='green' thickness=2 pattern =dashdashdot);&lt;BR /&gt;refline &amp;amp;bin_usl/axis=Y label= 'USL&amp;amp;bin_usl.' lineattrs=(color ='green' thickness=2 pattern =dashdashdot);&lt;BR /&gt;xaxis discreteorder=data fitpolicy=rotate display=all;&lt;BR /&gt;yaxis grid max=&amp;amp;bin_usl min = &amp;amp;bin_lsl ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289168#M10222</guid>
      <dc:creator>gauravp1993</dc:creator>
      <dc:date>2016-08-03T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time series using Proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289173#M10223</link>
      <description>&lt;P&gt;Remove duplicate records before doing the graph?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289173#M10223</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-03T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Time series using Proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289176#M10224</link>
      <description>&lt;P&gt;You need to sort the data by the X variable. &amp;nbsp;There is not a unique way to plot data that has duplicate X values, but in your example you are plotting the high value before the low values, so run the following before you call PROC SGPLOT:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=work.limits;
   by time_stamp test_value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Time-series-using-Proc-sgplot/m-p/289176#M10224</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-03T12:13:14Z</dc:date>
    </item>
  </channel>
</rss>

