<?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 Difference between titlehalign and titlejustify / labelhalign and labeljustify in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Difference-between-titlehalign-and-titlejustify-labelhalign-and/m-p/931405#M24675</link>
    <description>&lt;P&gt;I'm not understanding what the difference between the titlehalign= option and the titlejustify= option&amp;nbsp; in the axistables when reading the online doc (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0ka2y1m7pmaqdn1ijnwzp8jljoc.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0ka2y1m7pmaqdn1ijnwzp8jljoc.htm&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have an example which shows the difference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example with both options.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
   sex='M'; freq=5; age=12; output;
   sex='M'; freq=6; age=13; output;
   sex='M'; freq=7; age=14; output;
   sex='F'; freq=7; age=12; output;
   sex='F'; freq=8; age=13; output;
   sex='F'; freq=9; age=14; output;
run;

proc sgplot data=class;
    hbarbasic sex / response=freq;

    yaxistable freq / class=age 
                      location=inside separator
                      title='Test'
                      titlejustify=center 
                      pad=50; 
                     
    yaxistable freq / class=age 
                      location=inside separator
                      title='Test'
                      titlehalign=center
                      pad=50; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jun 2024 04:28:49 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2024-06-09T04:28:49Z</dc:date>
    <item>
      <title>Difference between titlehalign and titlejustify / labelhalign and labeljustify</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difference-between-titlehalign-and-titlejustify-labelhalign-and/m-p/931405#M24675</link>
      <description>&lt;P&gt;I'm not understanding what the difference between the titlehalign= option and the titlejustify= option&amp;nbsp; in the axistables when reading the online doc (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0ka2y1m7pmaqdn1ijnwzp8jljoc.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0ka2y1m7pmaqdn1ijnwzp8jljoc.htm&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have an example which shows the difference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example with both options.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
   sex='M'; freq=5; age=12; output;
   sex='M'; freq=6; age=13; output;
   sex='M'; freq=7; age=14; output;
   sex='F'; freq=7; age=12; output;
   sex='F'; freq=8; age=13; output;
   sex='F'; freq=9; age=14; output;
run;

proc sgplot data=class;
    hbarbasic sex / response=freq;

    yaxistable freq / class=age 
                      location=inside separator
                      title='Test'
                      titlejustify=center 
                      pad=50; 
                     
    yaxistable freq / class=age 
                      location=inside separator
                      title='Test'
                      titlehalign=center
                      pad=50; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 04:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difference-between-titlehalign-and-titlejustify-labelhalign-and/m-p/931405#M24675</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2024-06-09T04:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between titlehalign and titlejustify / labelhalign and labeljustify</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difference-between-titlehalign-and-titlejustify-labelhalign-and/m-p/931409#M24678</link>
      <description>&lt;P&gt;The TITLEALIGN option specifies the position of the text bounding box with the width of the axis table. &amp;nbsp;The TITLEJUSTIFY option justifies the text within the bounding box. This option is used mainly when you have a long title that wraps. To see this clearly, change the TITLE in your first YAXISTABLE to be "test a very long title". With the TITLEJUSTIFY=CENTER option, you'll see the text center-justified in the bounding box. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 05:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difference-between-titlehalign-and-titlejustify-labelhalign-and/m-p/931409#M24678</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-06-09T05:37:57Z</dc:date>
    </item>
  </channel>
</rss>

