<?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: How to Mark X Axis Value in Proc SGPLOT with Symbol in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800731#M315048</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10837"&gt;@kmorrowvt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. In trying to get something fancier, I tried to use the marker font, but I'm only getting the character rather than it transforming to the appropriate symbol. Am I missing something? (I tried assigning the barlabel to V directly in the data and by setting it to V with proc format.)&lt;CODE class=" language-sas"&gt;it;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I haven't used the Marker fonts since the time I was using SAS 6.12 or so. The few times I looked at such with the ODS destinations have all been pretty much a bust. Either I am not getting the actual name correctly or the font isn't a True Type and ODS doesn't like it or something. Hopefully someone else may have an idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were getting what looked like an empty box in the output that is what I had as well when I made a short attempt to use the marker font.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 21:06:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-03-07T21:06:27Z</dc:date>
    <item>
      <title>How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800286#M314772</link>
      <description>&lt;P&gt;I would like to mark one of the bars in a bar chart with a star (in this example I am looking to star the value of order=4). I have found many examples of putting a significance star somewhere on the bar but would like one under the bar in place of where the value for the x axis would go. I have done this in proc gchart utilizing the xaxis statement (value=(f=marker color=blue t=4 "V")), but have not found a solution for sgplot. Any help would be appreciated. Using SAS 9.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input order evalelbw barlabel;
datalines;
1 24 .
2 43 .
3 48 .
4 54 1
5 56 .
6 57 .
7 65 .
8 73 .
9 77 .
10 91 .
11 100 .
;
run;
proc sgplot data=have noautolegend;
vbar order/response=evalelbw;
yaxis grid values=(0 to 100 by 10) offsetmax=0.02 label="%";
xaxis display=(nolabel noticks novalues);
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;This is what I am looking for:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph want.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69165i2AD503E69905FA46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph want.png" alt="graph want.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 21:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800286#M314772</guid>
      <dc:creator>kmorrowvt</dc:creator>
      <dc:date>2022-03-04T21:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800294#M314774</link>
      <description>&lt;P&gt;One way that works with your example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
value barlabel
1 = '*'
other=' '
;
run;
proc sgplot data=have noautolegend;
vbar order/response=evalelbw;
yaxis grid values=(0 to 100 by 10) offsetmax=0.02 label="%";
xaxis display=(nolabel noticks novalues );
xaxistable barlabel / nolabel nostatlabel valueattrs=(size=15pt);
format barlabel barlabel.;
run;



&lt;/PRE&gt;
&lt;P&gt;You could the format to assign more interesting symbols with unicode (and *ESC* ) or specify a symbol font using the Family optiion in the Valueattrs combined with Format&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 23:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800294#M314774</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-04T23:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800323#M314795</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input order evalelbw barlabel;
datalines;
1 24 .
2 43 .
3 48 .
4 54 1
5 56 .
6 57 .
7 65 .
8 73 .
9 77 .
10 91 .
11 100 .
;
run;
proc sgplot data=have noautolegend;
vbar order/response=evalelbw;
yaxis grid values=(0 to 100 by 10) offsetmax=0.02 label="%";
xaxis display=(nolabel noticks ) values=(1 to 11 by 1) 
valuesdisplay=(''  ''  ''  "(*ESC*){unicode '2605'x}" '' '' '' '' '' '' '' ) ;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1646476296227.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69170i803506D714C0743D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1646476296227.png" alt="Ksharp_0-1646476296227.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 10:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800323#M314795</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-05T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800648#M315014</link>
      <description>&lt;P&gt;Thank you. In trying to get something fancier, I tried to use the marker font, but I'm only getting the character rather than it transforming to the appropriate symbol. Am I missing something? (I tried assigning the barlabel to V directly in the data and by setting it to V with proc format.)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   input order evalelbw barlabel $;
   datalines;
1 24 .
2 43 .
3 48 .
4 54 V
5 56 .
6 57 .
7 65 .
8 73 .
9 77 .
10 91 .
11 100 .
;
run; 

  proc sgplot data=have noautolegend;
	  vbar order/response=evalelbw;
		yaxis grid values=(0 to 100 by 10) offsetmax=0.02 label="%";
		xaxis display=(nolabel noticks novalues);
    xaxistable barlabel / nolabel nostatlabel valueattrs=(family=Marker size=15);
	run;
	quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2022 17:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800648#M315014</guid>
      <dc:creator>kmorrowvt</dc:creator>
      <dc:date>2022-03-07T17:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800731#M315048</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10837"&gt;@kmorrowvt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. In trying to get something fancier, I tried to use the marker font, but I'm only getting the character rather than it transforming to the appropriate symbol. Am I missing something? (I tried assigning the barlabel to V directly in the data and by setting it to V with proc format.)&lt;CODE class=" language-sas"&gt;it;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I haven't used the Marker fonts since the time I was using SAS 6.12 or so. The few times I looked at such with the ODS destinations have all been pretty much a bust. Either I am not getting the actual name correctly or the font isn't a True Type and ODS doesn't like it or something. Hopefully someone else may have an idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were getting what looked like an empty box in the output that is what I had as well when I made a short attempt to use the marker font.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 21:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800731#M315048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-07T21:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800732#M315049</link>
      <description>&lt;P&gt;Yeah, I am getting the empty box when trying to do anything with unicode 2605 and only a "V" when trying to apply the marker font.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 21:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800732#M315049</guid>
      <dc:creator>kmorrowvt</dc:creator>
      <dc:date>2022-03-07T21:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Mark X Axis Value in Proc SGPLOT with Symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800749#M315058</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10837"&gt;@kmorrowvt&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10837"&gt;@kmorrowvt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yeah, I am getting the empty box when trying to do anything with unicode 2605 ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may need to activate DBCS to get the star symbol from&amp;nbsp;&lt;SPAN&gt;Unicode 2605. Even in a SAS session "with Unicode support" I got the "empty box" character, but with "SAS 9.4 (English &lt;EM&gt;with DBCS&lt;/EM&gt;)," i.e., a config file containing a certain set of system options, I was able to reproduce &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408" target="_blank" rel="noopener"&gt;Ksharp&lt;/A&gt;'s graph. (Using a local SAS 9.4M5 installation under Windows.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 23:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Mark-X-Axis-Value-in-Proc-SGPLOT-with-Symbol/m-p/800749#M315058</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-03-07T23:22:38Z</dc:date>
    </item>
  </channel>
</rss>

