<?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 Major ticks in PROC GCHART in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21429#M556</link>
    <description>Hi, &lt;BR /&gt;
I am using PROC GCHART to create a vertical bar chart. &lt;BR /&gt;
The problem is that the major ticks marks appear in the vertical axis but not in the horizontal axis.&lt;BR /&gt;
I have tried to put in the axis definition the option major=(number=5), but the major ticks don't appear and in the log there is this message:&lt;BR /&gt;
&lt;BR /&gt;
WARNING: The MAJOR= option on AXIS statement 22 was ignored because the Month axis does not support MAJOR=.&lt;BR /&gt;
&lt;BR /&gt;
I'd like to know if it's possible to show the major ticks marks in a PROC GCHART (when i use the same axis define in a PROC GPLOT there's not problem), and if it's possible, how can i do it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance, &lt;BR /&gt;
Elena&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Axis1	/*** vertical axis ***/&lt;BR /&gt;
STYLE=1&lt;BR /&gt;
WIDTH=1&lt;BR /&gt;
MINOR=NONE	&lt;BR /&gt;
LABEL=( HEIGHT=9pt "" )&lt;BR /&gt;
VALUE=(HEIGHT=9pt); &lt;BR /&gt;
&lt;BR /&gt;
Axis2 /* horizontal */	&lt;BR /&gt;
 STYLE=1&lt;BR /&gt;
 WIDTH=1&lt;BR /&gt;
 MINOR=NONE&lt;BR /&gt;
 major=(number=5) &lt;BR /&gt;
LABEL=( HEIGHT=9pt "" )&lt;BR /&gt;
VALUE=(HEIGHT=9pt);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC GCHART DATA=A;&lt;BR /&gt;
VBAR 	 MONTH /&lt;BR /&gt;
DISCRETE&lt;BR /&gt;
SUMVAR=Request&lt;BR /&gt;
SUBGROUP=PRIORITY&lt;BR /&gt;
SPACE=1   &lt;BR /&gt;
html=link&lt;BR /&gt;
MISSING&lt;BR /&gt;
FRAME	TYPE=SUM&lt;BR /&gt;
LEGEND=LEGEND1&lt;BR /&gt;
COUTLINE=SAME&lt;BR /&gt;
RAXIS=AXIS1&lt;BR /&gt;
MAXIS=AXIS2;&lt;BR /&gt;
RUN;</description>
    <pubDate>Tue, 24 Nov 2009 11:26:18 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-11-24T11:26:18Z</dc:date>
    <item>
      <title>Major ticks in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21429#M556</link>
      <description>Hi, &lt;BR /&gt;
I am using PROC GCHART to create a vertical bar chart. &lt;BR /&gt;
The problem is that the major ticks marks appear in the vertical axis but not in the horizontal axis.&lt;BR /&gt;
I have tried to put in the axis definition the option major=(number=5), but the major ticks don't appear and in the log there is this message:&lt;BR /&gt;
&lt;BR /&gt;
WARNING: The MAJOR= option on AXIS statement 22 was ignored because the Month axis does not support MAJOR=.&lt;BR /&gt;
&lt;BR /&gt;
I'd like to know if it's possible to show the major ticks marks in a PROC GCHART (when i use the same axis define in a PROC GPLOT there's not problem), and if it's possible, how can i do it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance, &lt;BR /&gt;
Elena&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Axis1	/*** vertical axis ***/&lt;BR /&gt;
STYLE=1&lt;BR /&gt;
WIDTH=1&lt;BR /&gt;
MINOR=NONE	&lt;BR /&gt;
LABEL=( HEIGHT=9pt "" )&lt;BR /&gt;
VALUE=(HEIGHT=9pt); &lt;BR /&gt;
&lt;BR /&gt;
Axis2 /* horizontal */	&lt;BR /&gt;
 STYLE=1&lt;BR /&gt;
 WIDTH=1&lt;BR /&gt;
 MINOR=NONE&lt;BR /&gt;
 major=(number=5) &lt;BR /&gt;
LABEL=( HEIGHT=9pt "" )&lt;BR /&gt;
VALUE=(HEIGHT=9pt);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC GCHART DATA=A;&lt;BR /&gt;
VBAR 	 MONTH /&lt;BR /&gt;
DISCRETE&lt;BR /&gt;
SUMVAR=Request&lt;BR /&gt;
SUBGROUP=PRIORITY&lt;BR /&gt;
SPACE=1   &lt;BR /&gt;
html=link&lt;BR /&gt;
MISSING&lt;BR /&gt;
FRAME	TYPE=SUM&lt;BR /&gt;
LEGEND=LEGEND1&lt;BR /&gt;
COUTLINE=SAME&lt;BR /&gt;
RAXIS=AXIS1&lt;BR /&gt;
MAXIS=AXIS2;&lt;BR /&gt;
RUN;</description>
      <pubDate>Tue, 24 Nov 2009 11:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21429#M556</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-24T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Major ticks in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21430#M557</link>
      <description>Traditional sas/graph gcharts allow tickmarks on the response (height) axis, but not on the midpoint (bar) axis.  &lt;BR /&gt;
&lt;BR /&gt;
I guess the reasoning is something like ... if you have a bar &amp;amp; a bar value/label at every data point, why the need for tickmarks?  Also, since the bars are at discrete/categorical values it wouldn't really make sense to have tickmarks (tickmarks are for proportionally-spaced numeric ranges).&lt;BR /&gt;
&lt;BR /&gt;
If you *really* need tickmarks on the bar axis, you could annotate them (but that's a lot of work, and I'm not sure it really gains you anything).&lt;BR /&gt;
&lt;BR /&gt;
---&lt;BR /&gt;
&lt;BR /&gt;
Ok, so much for my soapbox!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here's the code to annotate tickmarks at each bar:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data tick_anno; set sashelp.class;&lt;BR /&gt;
xsys='2'; ysys='1'; &lt;BR /&gt;
function='move'; midpoint=name; y=0; output;&lt;BR /&gt;
function='draw'; y=-.7; output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
axis1 value=(angle=90);&lt;BR /&gt;
proc gchart data=sashelp.class anno=tick_anno;&lt;BR /&gt;
vbar name / type=sum sumvar=height descending maxis=axis1;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 24 Nov 2009 13:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21430#M557</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-24T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Major ticks in PROC GCHART</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21431#M558</link>
      <description>Thank you so much!!!&lt;BR /&gt;
&lt;BR /&gt;
I don't really need tickbars... but a client has asked me if it was possible to see the graphs with tickmarks, so i'm going to try annotating them.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and regards!&lt;BR /&gt;
Elena</description>
      <pubDate>Tue, 24 Nov 2009 13:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Major-ticks-in-PROC-GCHART/m-p/21431#M558</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-24T13:59:35Z</dc:date>
    </item>
  </channel>
</rss>

