<?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 use unicode &amp;gt;= Symbol in SAS/Graph Legend in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/261452#M9432</link>
    <description>&lt;P&gt;One way to do this in SAS/Graph would be to specify *all* the characters in the legend as their 4-digit unicode number. This is a bit cumbersome, but if you only have one (or a few) graphs, perhaps it's an acceptable work-around(?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value hp
		low-100 = '226400a0003100300030'x
		100-150 = '00300030003100a000ad00a0003100350030'x
		150-high= '226500a0003100300031'x
	;
run;

legend1 label=('Horsepower: ') value=(justify=left font='albany amt/unicode');

proc gchart data=sashelp.cars;	
	pie Horsepower / 
		discrete
		value=none 
		other= 0
		legend=legend1
	;
	format Horsepower hp.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2630i9A89AC9183D72430/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="horsepower.png" title="horsepower.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 15:42:44 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2016-04-05T15:42:44Z</dc:date>
    <item>
      <title>How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254433#M9200</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to use the unicode symbols for &amp;lt;= and &amp;gt;= in a SAS/Graph legend in SAS 9.4M2 on Windows. The unicode symbols are&amp;nbsp;assigned using proc format. How can I achieve this?&amp;nbsp;I use the code below, and the unicode symbol is not rendered as a symbol but as text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;
&lt;P&gt;Jonas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;goptions reset=all;

proc format;
	value hp
		low-100 = "'2264'x &amp;lt;= 100" 
		100-150 = "101 - 150"
		150-high= "&amp;gt;= 101"
	;
run;

legend1 label=none;

proc gchart data=sashelp.cars;	
	pie Horsepower / 
		discrete
		value=none 
		slice=outside
		other= 0
		legend=legend1
	;
	format Horsepower hp.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12350iBAF869336FE10319/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Unicode in Legend.png" title="SAS Unicode in Legend.png" /&gt;</description>
      <pubDate>Fri, 04 Mar 2016 10:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254433#M9200</guid>
      <dc:creator>jb3</dc:creator>
      <dc:date>2016-03-04T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254434#M9201</link>
      <description>&lt;P&gt;Hi Jonas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this blog post: &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/" target="_self"&gt;http://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/. &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does exactly what you're looking for, although it does require SAS 9.4M3! Kudos to Sanjay Matange.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards, Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 11:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254434#M9201</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-03-04T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254437#M9202</link>
      <description>&lt;P&gt;You will want to a) move to sgplot and gtl, b) check out this blog which has code examples on everything sgplot/gtl related. &amp;nbsp;Note in this link I have filtered for exactly what you request, but do have a look at the whole blog as there are many examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=unicode" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=unicode&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 11:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254437#M9202</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-04T11:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254452#M9204</link>
      <description>Thanks for your answers. Is there really no chance of doing this in SAS/Graph?</description>
      <pubDate>Fri, 04 Mar 2016 13:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254452#M9204</guid>
      <dc:creator>jb3</dc:creator>
      <dc:date>2016-03-04T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254454#M9205</link>
      <description>&lt;P&gt;I have given it a shot but the approach taken by the blog is ODS, and thus limited to ODS graphics. So it won't work from eg. the Bar Chart task in EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are examples floating around using hex characters (ALT-codes from the keyboard) in the labels but the results I had with a quick test were inconsistent. But you may want to give that a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reg's Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/254454#M9205</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-03-04T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use unicode &gt;= Symbol in SAS/Graph Legend</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/261452#M9432</link>
      <description>&lt;P&gt;One way to do this in SAS/Graph would be to specify *all* the characters in the legend as their 4-digit unicode number. This is a bit cumbersome, but if you only have one (or a few) graphs, perhaps it's an acceptable work-around(?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value hp
		low-100 = '226400a0003100300030'x
		100-150 = '00300030003100a000ad00a0003100350030'x
		150-high= '226500a0003100300031'x
	;
run;

legend1 label=('Horsepower: ') value=(justify=left font='albany amt/unicode');

proc gchart data=sashelp.cars;	
	pie Horsepower / 
		discrete
		value=none 
		other= 0
		legend=legend1
	;
	format Horsepower hp.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2630i9A89AC9183D72430/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="horsepower.png" title="horsepower.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/m-p/261452#M9432</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-04-05T15:42:44Z</dc:date>
    </item>
  </channel>
</rss>

