<?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: So is there a way to add symbols to Title or footnotes when using SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188687#M6949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is always good to include the SAS release version you are using, as the features available in SG or GTL are changing rapidly.&amp;nbsp; Since you are using a blue category bands, I assume you are using SAS 9.4 +.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you start making multi-cell graphs, like this one, you should really consider using GTL for layout issues like centering the legend and better control of the two cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With SAS 9.4, you have options to wrap the axis tick values on Y or X axis to handle the case of long category values.&amp;nbsp; For Y axis, you can set the FitPolicy to SplitAlways to wrap the values over multiple lines, thus incerasing the available space for the legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried this, but maybe you could look for a "filled square" chcracter in a Unicode font, and add that in the footnote with the right color, like you have done in your code.&amp;nbsp; See doc on how to include Unicode in Footnote.&amp;nbsp; Graphically Speaking blog has some examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 02:58:08 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2015-03-03T02:58:08Z</dc:date>
    <item>
      <title>So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188682#M6944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Marker font doesnt work with statistical graphic procedures such as sgplot. In the past for standard graphics we could make our own legend in the footnote using the marker font to build the pieces and verbiage. So is there another way to show symbols in the title or footnote when using SGPLOT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively... if theres a way to make the legend span the entire area and not just under the graph I wouldnt need to recreate my own legend and just use the one built by SAS. I have a horizontal bar graph that has long text questions categories as the Y Axis which makes the legend off center for the graph area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;IMG __jive_id="9406" alt="3-2-2015 10-59-14 AM.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9406_3-2-2015 10-59-14 AM.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code below:&lt;/P&gt;&lt;P&gt;footnote j=c "Legend: " font="Monotype Sorts" c=CX1A9641 "n" font="sans-serif" c=black " Strongly Agree&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp; font=marker c=CXA6D96A " U " font="sans-serif" c=black " Agree&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp; font=marker c=CXFFFFBF " U " font="sans-serif" c=black " Undecided&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp; font=marker c=CXFDAE61 " U " font="sans-serif" c=black " Disagree&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp; font=marker c=CXD7191C " U " font="sans-serif" c=black " Strongly Disagree"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;proc sgplot data= summary2 (where=(f1=:"1")) nocycleattrs dattrmap=attrmap;&lt;/P&gt;&lt;P&gt;&amp;nbsp; hbar f1 / response= value group=group grouporder=data name='current' legendlabel='Current Results'&lt;/P&gt;&lt;P&gt;&amp;nbsp; dataskin=matte barwidth=.6 attrid=current ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; hbar f1 / response= diff_from_prev group=group name='comp' legendlabel="Comparison"&lt;/P&gt;&lt;P&gt;&amp;nbsp; x2axis dataskin=matte barwidth=.3 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline 1 / axis=x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend 'current' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis display=(nolabel noticks) type=discrete valueattrs=(size=7) fitpolicy=splitalways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; colorbands=odd colorbandsattrs=(transparency=0.5) splitchar="/";&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis offsetmax=0.25 grid labelattrs=(size=8) min= 0 max= 1 valueattrs=(size=7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label='Percent' labelpos=datacenter minor;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x2axis offsetmin=0.75 min= -1 max = 1 grid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(size=8) valueattrs=(size=7)&amp;nbsp; labelpos=datacenter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label='Change in Average Response';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 16:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188682#M6944</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2015-03-02T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188683#M6945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to this I even tried the escape char with unicode symbol and nothing happens as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188683#M6945</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2015-03-02T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188684#M6946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post this to the graphics forum for an answer from one of the SAS graph personnel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the answer is currently no, but the next release is expected to support this feature. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188684#M6946</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-02T19:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188685#M6947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="246104" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188685#M6947</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-02T19:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188686#M6948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza for the suggestion ... I just moved it into SAS/Graph ODS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188686#M6948</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2015-03-02T19:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188687#M6949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is always good to include the SAS release version you are using, as the features available in SG or GTL are changing rapidly.&amp;nbsp; Since you are using a blue category bands, I assume you are using SAS 9.4 +.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you start making multi-cell graphs, like this one, you should really consider using GTL for layout issues like centering the legend and better control of the two cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With SAS 9.4, you have options to wrap the axis tick values on Y or X axis to handle the case of long category values.&amp;nbsp; For Y axis, you can set the FitPolicy to SplitAlways to wrap the values over multiple lines, thus incerasing the available space for the legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried this, but maybe you could look for a "filled square" chcracter in a Unicode font, and add that in the footnote with the right color, like you have done in your code.&amp;nbsp; See doc on how to include Unicode in Footnote.&amp;nbsp; Graphically Speaking blog has some examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 02:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188687#M6949</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-03-03T02:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188688#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sanjay .... you are correct. We have SAS 9.4 M1 ... I think the lack of the latest maintenance release is hindering us here in this situation. I did try to use unicode with the escape char but the results came back blank. I assumed it was the release we were on since the documentation said it was a rather new feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in GTL can you center a legend across the entire "graphing area" instead of the data area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way ... thanks so much for the Graphically Speaking blog! I enjoy looking at the new posts even when not trying to figure out a graphing procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 12:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188688#M6950</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2015-03-03T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188689#M6951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unicode support is available since SAS 9.2.&amp;nbsp; Make sure you use the correct syntax, and a Unicode font that has the expected symbol.&amp;nbsp; All styles have a GraphUnicodeFont defined.&amp;nbsp; You can use that or ArialUnicode or some such.&amp;nbsp; See example here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/" title="http://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/"&gt;http://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, GTL has more features to center the legend.&amp;nbsp; Use a LAYOUT LATTICE as outermost layout with one LAYOUT OVERLAY for the graph.&amp;nbsp; Then use a SIDEBAR with SPACEFILL=true to place the legend to span the entire space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 14:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188689#M6951</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-03-03T14:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: So is there a way to add symbols to Title or footnotes when using SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188690#M6952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what happended originally is that I didnt specificy the hex unicode value correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I ended using was:&lt;/P&gt;&lt;P&gt;footnote j=c bold "Legend: " c=CX1A9641 font="sans-serif" bold " (*ESC*){unicode '25A0'x} Strongly Agree&amp;nbsp; " c=black bold "/ "&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=CXA6D96A font="sans-serif" bold " (*ESC*){unicode '25A0'x} Agree&amp;nbsp; " c=black bold "/ "&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=CXCCCC44 font="sans-serif" bold " (*ESC*){unicode '25A0'x} Undecided&amp;nbsp; " c=black bold "/ "&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=CXFDAE61 font="sans-serif" bold " (*ESC*){unicode '25A0'x} Disagree&amp;nbsp; " c=black bold "/ "&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=CXD7191C font="sans-serif" bold " (*ESC*){unicode '25A0'x} Strongly Disagree"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/So-is-there-a-way-to-add-symbols-to-Title-or-footnotes-when/m-p/188690#M6952</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2015-03-03T16:32:13Z</dc:date>
    </item>
  </channel>
</rss>

