<?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 ODS Graphics Designer - adjust legend attributes in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/806449#M22735</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi. I have been user of SAS EG for a long time and I use ODS Graphics Designer for creating graphs. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I experience the problem with the legend - I can't find how to change the style of values in the legend.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; It is possible to change the style of the lable, but not of the values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-04-13_8-33-00.png" style="width: 941px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70350i5816EB768051BDE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-04-13_8-33-00.png" alt="2022-04-13_8-33-00.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Natalja&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 12:34:09 GMT</pubDate>
    <dc:creator>NataljaK</dc:creator>
    <dc:date>2022-04-13T12:34:09Z</dc:date>
    <item>
      <title>ODS Graphics Designer - adjust legend attributes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/806449#M22735</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi. I have been user of SAS EG for a long time and I use ODS Graphics Designer for creating graphs. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I experience the problem with the legend - I can't find how to change the style of values in the legend.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; It is possible to change the style of the lable, but not of the values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-04-13_8-33-00.png" style="width: 941px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70350i5816EB768051BDE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-04-13_8-33-00.png" alt="2022-04-13_8-33-00.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Natalja&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/806449#M22735</guid>
      <dc:creator>NataljaK</dc:creator>
      <dc:date>2022-04-13T12:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807156#M22737</link>
      <description>&lt;P&gt;To enable us to help you, please do the following:&lt;/P&gt;
&lt;P&gt;1. Post a picture of the current graph.&lt;/P&gt;
&lt;P&gt;2. Explain what you want to change. For example, "The legend currently shows a blue circle for males and a&amp;nbsp; red circle for females. I want the legend to show a green plus sign (+) for males and a brown triangle for females."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you want the change only in the legend, or do you also want to see the change in the graph?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 12:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807156#M22737</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-11T12:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807306#M22740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not programmer and I do not use coding widly.&lt;/P&gt;
&lt;P&gt;I create graphics by means of ODS Graphics Designer from SAS EG.&lt;/P&gt;
&lt;P&gt;I would like to change the style of values in graph's legend the way as it&amp;nbsp; is available for the legend's title, not by changing the code.&lt;/P&gt;
&lt;P&gt;It is seen in the attached document, that ODS Graphics Designer does not have such an opportunity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Natalja&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 07:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807306#M22740</guid>
      <dc:creator>NataljaK</dc:creator>
      <dc:date>2022-04-12T07:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807337#M22742</link>
      <description>&lt;P&gt;Are you saying that you want to change the font (family, size, color,....) of the text in the legend?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807337#M22742</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-12T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807344#M22748</link>
      <description>&lt;P&gt;Yes, I am.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no problem with title of legend, the problem is with others elements there .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 11:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807344#M22748</guid>
      <dc:creator>NataljaK</dc:creator>
      <dc:date>2022-04-12T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807379#M22750</link>
      <description>&lt;P&gt;Unfortunately, you cannot change those attributes by using the dialog boxes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ODS Graphics Designer creates Graph Template Language (GTL) statements and renders those statements. If you want to&amp;nbsp;make that change, you will have to modify the GTL statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. In ODS Graphics Designer, click &lt;STRONG&gt;View--&amp;gt;Code.&amp;nbsp;&lt;/STRONG&gt;A window will appear that has the GTL statements that are used to create your graph. The code will look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph sgdesign;
dynamic _DATE _CLOSE _STOCK;
begingraph / designwidth=640 designheight=431;
   entrytitle halign=center 'My Graph Title';
   layout lattice / rowdatarange=data columndatarange=data rowgutter=10 columngutter=10;
      layout overlay;
         seriesplot x=_DATE y=_CLOSE / group=_STOCK name='series' clusterwidth=0.5 connectorder=xaxis grouporder=data;
         discretelegend 'series' / opaque=true backgroundcolor=CXFFFFFF border=true halign=center 
               valign=bottom title='SUUNAD' displayclipped=true down=1 order=columnmajor location=outside;
      endlayout;
   endlayout;
endgraph;
end;
run;

proc sgrender data=WORK.STOCKS template=sgdesign;
dynamic _DATE="DATE" _CLOSE="CLOSE" _STOCK="STOCK";
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. To make your change, first copy this code. Click inside the code window. Then click&amp;nbsp;&lt;STRONG&gt;Edit-&amp;gt;Select All&lt;/STRONG&gt; followed by &lt;STRONG&gt;Edit-&amp;gt;Copy.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3. Paste these statements into&amp;nbsp;a SAS programming window in EG.&lt;/P&gt;
&lt;P&gt;4. On the DISCRETELEGEND statement, add the following option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;discretelegend 'series' / opaque=true backgroundcolor=CXFFFFFF border=true halign=center 
  valign=bottom title='SUUNAD' displayclipped=true down=1 order=columnmajor location=outside
  valueattrs=(Family='Arial' Size=8 Style=Italic Weight=Bold) autoitemsize=TRUE  /* &amp;lt;== ADD THIS LINE */
  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;5. You can change the values of the options&amp;nbsp;to configure the legend.&lt;/P&gt;
&lt;P&gt;6. To render the graph, submit the modified program.&lt;/P&gt;
&lt;DIV id="tinyMceEditorChrisHemedinger_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-04-13_8-28-57.png" style="width: 752px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70349iA9B504CB0663EC12/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-04-13_8-28-57.png" alt="2022-04-13_8-28-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807379#M22750</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-13T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807560#M22753</link>
      <description>&lt;P&gt;Thank you! It works nicely!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 07:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807560#M22753</guid>
      <dc:creator>NataljaK</dc:creator>
      <dc:date>2022-04-13T07:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Graphics Designer</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807569#M22754</link>
      <description>&lt;P&gt;Please mark the correct response as The Answer. This will help others to find the correct answer in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 10:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-Graphics-Designer-adjust-legend-attributes/m-p/807569#M22754</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-13T10:20:34Z</dc:date>
    </item>
  </channel>
</rss>

