<?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: add date to  x axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31736#M1026</link>
    <description>You could use a 'grouped' bar chart (but there are some caveats you might run into)...&lt;BR /&gt;
&lt;BR /&gt;
The code would be something like:&lt;BR /&gt;
&lt;BR /&gt;
proc chart data = Call_type_technical;&lt;BR /&gt;
VBAR Call_type / discrete&lt;BR /&gt;
group=date&lt;BR /&gt;
SUMVAR=CALLS_HANDLED TYPE= SUM;&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 10 Nov 2010 15:11:47 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2010-11-10T15:11:47Z</dc:date>
    <item>
      <title>add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31733#M1023</link>
      <description>Hello everyone!&lt;BR /&gt;
&lt;BR /&gt;
I would like to add the date to the x axis in the below code, how would i do that?&lt;BR /&gt;
Basically i would like to see in x axis each day in the date range and the Call_type, Sum of Calls_handled in y axis.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc chart data = Call_type_technical;&lt;BR /&gt;
VBAR Call_type /SUMVAR = CALLS_HANDLED TYPE= SUM;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Wed, 10 Nov 2010 13:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31733#M1023</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-11-10T13:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31734#M1024</link>
      <description>Perhaps something like this...&lt;BR /&gt;
&lt;BR /&gt;
proc chart data = Call_type_technical;&lt;BR /&gt;
VBAR date / discrete&lt;BR /&gt;
 subgroup=Call_type &lt;BR /&gt;
 SUMVAR=CALLS_HANDLED TYPE= SUM;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 10 Nov 2010 13:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31734#M1024</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-11-10T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31735#M1025</link>
      <description>Thanks Robert&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to have a bar for each Call_type instead of on top of each other?&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Wed, 10 Nov 2010 15:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31735#M1025</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-11-10T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31736#M1026</link>
      <description>You could use a 'grouped' bar chart (but there are some caveats you might run into)...&lt;BR /&gt;
&lt;BR /&gt;
The code would be something like:&lt;BR /&gt;
&lt;BR /&gt;
proc chart data = Call_type_technical;&lt;BR /&gt;
VBAR Call_type / discrete&lt;BR /&gt;
group=date&lt;BR /&gt;
SUMVAR=CALLS_HANDLED TYPE= SUM;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 10 Nov 2010 15:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31736#M1026</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-11-10T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31737#M1027</link>
      <description>Thank you Robert this will help a lot with my analysis.&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Wed, 10 Nov 2010 15:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31737#M1027</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-11-10T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31738#M1028</link>
      <description>Just curious...won't PROC &lt;B&gt;G&lt;/B&gt;CHART look better???&lt;BR /&gt;
&lt;BR /&gt;
;-)&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 10 Nov 2010 15:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31738#M1028</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-10T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31739#M1029</link>
      <description>Hi Cynthia&lt;BR /&gt;
&lt;BR /&gt;
Yes that is what i ended up doing, see code below.&lt;BR /&gt;
Thanks for the input.&lt;BR /&gt;
&lt;BR /&gt;
/* Technical Set the graphics environment   */&lt;BR /&gt;
 /* Create Graph of Calls Handled Technical  */&lt;BR /&gt;
&lt;BR /&gt;
   /* Email HTM File to Distribution List */&lt;BR /&gt;
goptions reset=all device=activex xpixels=950;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
   /* Specify the path and filename of the output file.  */&lt;BR /&gt;
  &lt;BR /&gt;
filename odsout '\\***************************************\';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  /* Open the ODS HTML output destination */&lt;BR /&gt;
&lt;BR /&gt;
ods html file='Information.html' path=odsout style=Statistical;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
title 'Information'; &lt;BR /&gt;
&lt;BR /&gt;
/* use the SHAPE= option to specify a cylinder */&lt;BR /&gt;
&lt;BR /&gt;
axis1 value=(height=8pt angle=90);&lt;BR /&gt;
axis2 label=(angle=90 rotate=0);&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=Call_Type_Tech noprint;&lt;BR /&gt;
vbar3d date /width =10 sumvar=calls_handled discrete raxis=axis1 shape=cylinder&lt;BR /&gt;
subgroup=call_type&lt;BR /&gt;
group=call_type&lt;BR /&gt;
cframe=yellow autoref width=2;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Thu, 11 Nov 2010 13:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31739#M1029</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-11-11T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31740#M1030</link>
      <description>Hi:&lt;BR /&gt;
  Are you getting an error on the NOPRINT option?&lt;BR /&gt;
[pre]&lt;BR /&gt;
527  proc gchart data=xxxxxxx_yyyyyyy noprint;&lt;BR /&gt;
                                      -------&lt;BR /&gt;
                                      22&lt;BR /&gt;
                                      202&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANNOTATE, DATA, GOUT, IMAGEMAP.&lt;BR /&gt;
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                          &lt;BR /&gt;
Other than that, the CFRAME=YELLOW hurts my eyes, but perhaps your viewers have younger eyes that aren't as sensitive to colors like that.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 11 Nov 2010 18:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31740#M1030</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-11T18:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31741#M1031</link>
      <description>I have since removed the noprint.&lt;BR /&gt;
&lt;BR /&gt;
I do have a question regarding Goption Device = gif;&lt;BR /&gt;
instead of goption reset = all device = active x;&lt;BR /&gt;
&lt;BR /&gt;
I have changed my code to Goption Device = gif; so i could drilldown but it now appears that i can't hover over bars with my mouse and see the totals for each group were this was the case with goption reset = all device = active x;&lt;BR /&gt;
&lt;BR /&gt;
Code below&lt;BR /&gt;
&lt;BR /&gt;
goptions device=gif gsfname=image gsfmode=append display;&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
 &lt;BR /&gt;
   /* Specify the path and filename of the output file.  */&lt;BR /&gt;
  &lt;BR /&gt;
filename odsout '\\mtrl\Int_ss$\vali_esource_vs_destination\';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  /* Open the ODS HTML output destination */&lt;BR /&gt;
&lt;BR /&gt;
ods html file='Calls Handled.html' path=odsout style=Statistical;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
title 'Calls Handled '; &lt;BR /&gt;
footnote1 color=Black "(Click Blue #1 Drilldown to Technical #2 Green for Service #3 Yellow for Sales &amp;amp; Retention)";&lt;BR /&gt;
footnote2 color=Red "(# 4 Calls that are not assigned to Group, no drilldown available)";&lt;BR /&gt;
&lt;BR /&gt;
/* use the SHAPE= option to specify a cylinder */&lt;BR /&gt;
&lt;BR /&gt;
axis1 value=(height=8pt angle=90);&lt;BR /&gt;
axis2 label=(angle=90 rotate=0);&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=neworg_callshandle_by_day;&lt;BR /&gt;
vbar3d date /discrete subgroup  = color width =10 sumvar=calls_handled discrete raxis=axis1 shape=cylinder&lt;BR /&gt;
subgroup=Group&lt;BR /&gt;
maxis=axis1 &lt;BR /&gt;
raxis=axis2 &lt;BR /&gt;
autoref cref=gray&lt;BR /&gt;
clipref &lt;BR /&gt;
coutline=black &lt;BR /&gt;
legend=legend1&lt;BR /&gt;
html_legend=htmlvar&lt;BR /&gt;
cframe=white autoref width=2;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions as it would be good to see that info&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Sun, 14 Nov 2010 18:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31741#M1031</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-11-14T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: add date to  x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31742#M1032</link>
      <description>You need HTML= parameter and add corresponding SAS variable from your input file to display the ALT= text.&lt;BR /&gt;
&lt;BR /&gt;
Sample 25247: Produce a graph with chart tips and drill down capabilities&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/25/247.html" target="_blank"&gt;http://support.sas.com/kb/25/247.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.

Message was edited by: sbb</description>
      <pubDate>Sun, 14 Nov 2010 21:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/add-date-to-x-axis/m-p/31742#M1032</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-14T21:15:47Z</dc:date>
    </item>
  </channel>
</rss>

