<?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 Unicode issues in the graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484632#M16699</link>
    <description>&lt;P&gt;I did asked about the unicode issue in proc gplot and proc sgplot. However, both just temporarily solved. I know annotation can fix the issue but not familiar with it. Anyone can help me about this? Further, anyone can give me some information about how to set up annotation data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First use proc gplot:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value ageold		1="&amp;lt;80"
				2="80-89"
				3="^{UNICODE 2265}90"
				999999="TOTAL"
	;
run;

proc gplot data=summary3 gout=hazgraph;
	
	format ageold ageold.;

	plot y*time = ageold / legend=legend1 haxis=axis1 vaxis=axis2 noframe;
			
	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="graph1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22289i59634017A56202F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph1.png" alt="graph1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second use sgpannel. Still not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods graphics on / noborder width=16cm height=10cm outputfmt=emf nosubpixel; 
proc sgpanel data=summary3 nosubpixel; 
format ageold ageold.; 
where years&amp;lt;=10; 
panelby ageold / columns=6 novarname noborder headerbackcolor=white noheaderborder; 
band x=years lower=0 upper=deceased / legendlabel="Deceased" ; 
band x=years lower=deceased upper=revised / legendlabel="Revised"; 
band x=years lower=revised upper=alive / legendlabel="Alive and Unrevised"; 
rowaxis label="Cumulative Incidence Function"; colaxis label="Years Since Primary Procedure" values=(0 to 10 by 1); 
keylegend / noborder autooutline; 
run; 
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The graph is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22290iA082BCC77555DD08/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.png" alt="graph2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 06:49:59 GMT</pubDate>
    <dc:creator>Andrea_Peng</dc:creator>
    <dc:date>2018-08-07T06:49:59Z</dc:date>
    <item>
      <title>Unicode issues in the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484632#M16699</link>
      <description>&lt;P&gt;I did asked about the unicode issue in proc gplot and proc sgplot. However, both just temporarily solved. I know annotation can fix the issue but not familiar with it. Anyone can help me about this? Further, anyone can give me some information about how to set up annotation data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First use proc gplot:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value ageold		1="&amp;lt;80"
				2="80-89"
				3="^{UNICODE 2265}90"
				999999="TOTAL"
	;
run;

proc gplot data=summary3 gout=hazgraph;
	
	format ageold ageold.;

	plot y*time = ageold / legend=legend1 haxis=axis1 vaxis=axis2 noframe;
			
	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="graph1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22289i59634017A56202F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph1.png" alt="graph1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second use sgpannel. Still not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods graphics on / noborder width=16cm height=10cm outputfmt=emf nosubpixel; 
proc sgpanel data=summary3 nosubpixel; 
format ageold ageold.; 
where years&amp;lt;=10; 
panelby ageold / columns=6 novarname noborder headerbackcolor=white noheaderborder; 
band x=years lower=0 upper=deceased / legendlabel="Deceased" ; 
band x=years lower=deceased upper=revised / legendlabel="Revised"; 
band x=years lower=revised upper=alive / legendlabel="Alive and Unrevised"; 
rowaxis label="Cumulative Incidence Function"; colaxis label="Years Since Primary Procedure" values=(0 to 10 by 1); 
keylegend / noborder autooutline; 
run; 
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The graph is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22290iA082BCC77555DD08/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.png" alt="graph2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 06:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484632#M16699</guid>
      <dc:creator>Andrea_Peng</dc:creator>
      <dc:date>2018-08-07T06:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode issues in the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484766#M16703</link>
      <description>&lt;P&gt;When using Unicode in the Format, you need to use the default ODS escape character string (*ESC*).&amp;nbsp; The value should be:&lt;/P&gt;
&lt;P&gt;3&lt;EM&gt;&amp;nbsp;= "(*ESC*){unicode '2265'x} 90"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;See example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/" target="_blank"&gt;https://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;</description>
      <pubDate>Tue, 07 Aug 2018 14:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484766#M16703</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-08-07T14:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode issues in the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484976#M16725</link>
      <description>&lt;P&gt;Thanks! sgpannel works well but gplot is still not working. I suppose annotation is needed for proc gplot.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 03:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/484976#M16725</guid>
      <dc:creator>Andrea_Peng</dc:creator>
      <dc:date>2018-08-08T03:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode issues in the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/485098#M16730</link>
      <description>&lt;P&gt;You might try Dr. Robert Allison's solution in this post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="How to use unicode &amp;gt;= Symbol in SAS/Graph Legend" href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/How-to-use-unicode-gt-Symbol-in-SAS-Graph-Legend/td-p/254433" target="_self"&gt;How to use unicode &amp;gt;= Symbol in SAS/Graph Legend&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using that approach, I think your format would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	value ageold 1='003C00380030'x
                     2='00380030002D00380039'x
                     3='226400390030'x
                     999999='0054004F00540041004C'x
	;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your LEGEND statement, be sure to specify a Unicode font as shown in this example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;legend1 label=('Age: ') value=(justify=left font='albany amt/unicode');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Aug 2018 12:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Unicode-issues-in-the-graph/m-p/485098#M16730</guid>
      <dc:creator>sdengland</dc:creator>
      <dc:date>2018-08-08T12:25:08Z</dc:date>
    </item>
  </channel>
</rss>

