<?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: axistable - any example with name= in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937798#M24874</link>
    <description>When I added 'text' in keylegend nothing was displayed. Therefore I was wondering if it was recognized and what text would then be displayed in the legend.</description>
    <pubDate>Wed, 31 Jul 2024 16:42:13 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2024-07-31T16:42:13Z</dc:date>
    <item>
      <title>axistable - any example with name=</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937763#M24865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm wondering when the name= option of the xaxistable/yaxistable could be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've created an example where name='test' is not referenced anywhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table class as
    select sex, mean(height) as mean_height
    from sashelp.class
    group by sex;
run;

proc sgplot data=class ;
    vbarbasic sex / response=mean_height;
    xaxistable mean_height / name='test';
    legenditem type=text name='A' / text='xx'
                                    label='Demo';
    keylegend 'A' / position=right;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937763#M24865</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2024-07-31T14:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: axistable - any example with name=</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937782#M24870</link>
      <description>&lt;P&gt;Pretty much the same reasons as having the Name= option for any of the plots: control of keylegend output.&lt;/P&gt;
&lt;P&gt;Remember that you can have multiple XAXISTABLE statements in a single plot. If you want to create a Keylegend output you have to be able to tell keylegend which one to use.&lt;/P&gt;
&lt;P&gt;Also, you may want to use multiple Keylegend statements to create multiple legends and again need names to control which legend options go with which item.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937782#M24870</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-31T15:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: axistable - any example with name=</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937798#M24874</link>
      <description>When I added 'text' in keylegend nothing was displayed. Therefore I was wondering if it was recognized and what text would then be displayed in the legend.</description>
      <pubDate>Wed, 31 Jul 2024 16:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937798#M24874</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2024-07-31T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: axistable - any example with name=</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937808#M24879</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;When I added 'text' in keylegend nothing was displayed. Therefore I was wondering if it was recognized and what text would then be displayed in the legend.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Legends would not be created in a graph with with a single Plot statement (i.e. Vbarbasic) with no overlay or group variable. XAXISTABLE by itself doesn't create a legend as it is not a plot statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contrived and not a suggested graph but demonstrates name= with multiple XAXISTABLE statements:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class ;
    vbar sex / response=height stat=mean group=age name='bar';
    xaxistable height / colorgroup=age  name='test';
    xaxistable weight / colorgroup=sex  name='test2';
    keylegend  'test' / position=bottom title='Mean Height';
    keylegend  'test2'/ position=right title='Weights';
run;&lt;/PRE&gt;
&lt;P&gt;Note the different colorgroup variable, what that does to the row variables.&lt;/P&gt;
&lt;P&gt;Default behavior is going to reuse colors which is why this isn't a very good graph but you were asking about Name= and shows that you can get different somewhat different legends for different XAXISTABLEs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/axistable-any-example-with-name/m-p/937808#M24879</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-31T17:47:07Z</dc:date>
    </item>
  </channel>
</rss>

