<?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: Display a day and month only as a date in a time series chart in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717353#M14629</link>
    <description>&lt;P&gt;My generic approach is to reshape data a bit prior to plotting:&lt;/P&gt;
&lt;PRE&gt;data template;
   set have;
   plotdate = (month(date),day(date),1960);
   year = year(date);
run;&lt;BR /&gt;Proc sort data=template;&lt;BR /&gt;  by year plotdate;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Use the Plotdate as the xaxis variable with a format of Date5. , use year as a grouping variable to legend entries and different appearance in the plots for the years.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Feb 2021 05:02:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-02-07T05:02:56Z</dc:date>
    <item>
      <title>Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717186#M14622</link>
      <description>&lt;P&gt;I'm wonder if it it possible to display a day and month only as a date in a time series chart?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, 1Apr 2Apr 3Apr etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't seem to find that format. If not, is there another way to achieve this? Because we are trying to compare 1Apr from 2019 for example to 1Apr 2020 so we can't include the years. Or do you think that I should just convert to a categorical value and use that in a line chart?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is in SAS VA 8.5 or SAS Viya 3.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 19:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717186#M14622</guid>
      <dc:creator>rjassem1</dc:creator>
      <dc:date>2021-02-05T19:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717226#M14623</link>
      <description>&lt;P&gt;I actually found a way around it and created a MON-Day string format and used that in a line chart BUT I can't sort it.&amp;nbsp; It was initially something like 1-Jun but then I changed in to Jun-1 so I could sort better but obviously it's still not sorted correctly. Line charts, it seems, don't have the ability to sort by a hidden variable as a drop-down object would. any workarounds for this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 21:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717226#M14623</guid>
      <dc:creator>rjassem1</dc:creator>
      <dc:date>2021-02-05T21:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717229#M14624</link>
      <description>&lt;P&gt;Actually, I found a workaround using custom sort by right clicking on the variable under the data section. All is good now! But ideally, another solution would be better but this works!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 22:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717229#M14624</guid>
      <dc:creator>rjassem1</dc:creator>
      <dc:date>2021-02-05T22:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717230#M14625</link>
      <description>&lt;P&gt;You could create a custom sort, although it would be very tedious if there are 365 values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ETA: You beat me to it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 22:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717230#M14625</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-02-05T22:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717233#M14626</link>
      <description>&lt;P&gt;Thank you for responding so quickly! Right now my list is short so it's manageable but it wouldn't be as you mentioned with 365 values.&amp;nbsp; Is there any way to customize the date further? I'm wondering why there is no day/month format in SAS.&amp;nbsp; It seems like a feature we would want in a time series?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 22:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717233#M14626</guid>
      <dc:creator>rjassem1</dc:creator>
      <dc:date>2021-02-05T22:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717235#M14628</link>
      <description>You may want to create a SASWare Ballot idea for this:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas/label-name/sas%20visual%20analytics" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas/label-name/sas%20visual%20analytics&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Those posts are reviewed by the product team.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, it is possible someone else here will have a better workaround to offer.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam</description>
      <pubDate>Fri, 05 Feb 2021 22:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717235#M14628</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-02-05T22:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717353#M14629</link>
      <description>&lt;P&gt;My generic approach is to reshape data a bit prior to plotting:&lt;/P&gt;
&lt;PRE&gt;data template;
   set have;
   plotdate = (month(date),day(date),1960);
   year = year(date);
run;&lt;BR /&gt;Proc sort data=template;&lt;BR /&gt;  by year plotdate;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Use the Plotdate as the xaxis variable with a format of Date5. , use year as a grouping variable to legend entries and different appearance in the plots for the years.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 05:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717353#M14629</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-07T05:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Display a day and month only as a date in a time series chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717629#M14631</link>
      <description>&lt;P&gt;Thanks! I will try this. I'm assuming though the SAS VA 8.4 time series chart will accept the DATE5. format from the dataset since there is no DATE5. format within SAS VA that I could find and that the time series will sort DATE5. correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 16:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Display-a-day-and-month-only-as-a-date-in-a-time-series-chart/m-p/717629#M14631</guid>
      <dc:creator>rjassem1</dc:creator>
      <dc:date>2021-02-08T16:19:23Z</dc:date>
    </item>
  </channel>
</rss>

