<?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: Sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845458#M334245</link>
    <description>&lt;P&gt;To avoid autofill of dates, use VLINE instead of SERIES.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 12:33:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-11-21T12:33:57Z</dc:date>
    <item>
      <title>Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845448#M334237</link>
      <description>&lt;P&gt;Hi Everyone.&lt;/P&gt;&lt;P&gt;I created a line chart in sas eg by taking a table as input which has date values of every Monday to Thursday. When I take last 7 days data from that table, I was getting non existing date values in my report also. Could anyone please help me out to get rid of them. Thanks. I've attached the sample report of it. As you see the below attached report, actually I don't have 11Nov, 12, 13 in my input table but still I was getting them that shouldn't happen.&lt;/P&gt;&lt;PRE&gt;Here's my code for line chart proc sgplot:

Proc sgplot data=have nocycleattrs;
Series x = dates y= A / lineattrs=(color=blue);
Series x = dates y= B / lineattrs=(color=green);
Series x = dates y= C / lineattrs=(color=red);
run;

&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20221121_165526.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77502i971B6AED406F3D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20221121_165526.jpg" alt="IMG_20221121_165526.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845448#M334237</guid>
      <dc:creator>Vasundha</dc:creator>
      <dc:date>2022-11-21T11:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845449#M334238</link>
      <description>&lt;P&gt;Can you attach some sample data? Makes it easier to help you.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845449#M334238</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-21T12:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845452#M334239</link>
      <description>&lt;P&gt;Sure here it is :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data have;
Input in_date : date9. readings;
format in_date date9.;
Datalines;
08Nov2022 89
09NOV2022 61
10NOV2022 60
14NOV2022 53
15NOV2022 45
16NOV2022 15
17NOV2022 12
;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845452#M334239</guid>
      <dc:creator>Vasundha</dc:creator>
      <dc:date>2022-11-21T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845453#M334240</link>
      <description>&lt;P&gt;This is not the dataset you use in your SGPLOT procedure, none of the variables used in the plot are there. Please post the real dataset with variables dates, a, b and c.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845453#M334240</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-21T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845454#M334241</link>
      <description>&lt;P&gt;Your posted data does not contain the variables from the posted PROC SGPLOT Code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I interpret your problem like this. You do not have 11, 12, 13 Nov in your data. So you do not want to display them in your graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the line below in your code to achieve this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis type = discrete;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845454#M334241</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-21T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845455#M334242</link>
      <description>&lt;P&gt;Extremely Sorry here it is.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data have;
Input dates : date9. A B C;
format dates date9.;
Datalines;
08Nov2022 89 468  120
09NOV2022 61 345 287
10NOV2022 60 900 111
14NOV2022 53 127 123
15NOV2022 45 460 430
16NOV2022 15 230 550
17NOV2022 12 310 589
;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845455#M334242</guid>
      <dc:creator>Vasundha</dc:creator>
      <dc:date>2022-11-21T12:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845456#M334243</link>
      <description>&lt;P&gt;It worked, please fill your heart heartily thanked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845456#M334243</guid>
      <dc:creator>Vasundha</dc:creator>
      <dc:date>2022-11-21T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845457#M334244</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Heartily&amp;nbsp;filled &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845457#M334244</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-11-21T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845458#M334245</link>
      <description>&lt;P&gt;To avoid autofill of dates, use VLINE instead of SERIES.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sgplot/m-p/845458#M334245</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-21T12:33:57Z</dc:date>
    </item>
  </channel>
</rss>

