<?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: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974729#M25656</link>
    <description>&lt;P&gt;Courier is a &lt;EM&gt;proportional&lt;/EM&gt;&amp;nbsp; font, i.e., narrow characters like "i" occupy less space than wide characters like "m." This variability makes it virtually impossible to achieve perfect alignment by using space characters such as '20'x or 'A0'x because the exact amount of horizontal space required is most likely not an integer multiple of the width of a space character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This problem does not occur with &lt;EM&gt;non-proportional&lt;/EM&gt; fonts (where all characters have the same width) such as Courier New, Cumberland AMT or Lucida Console. I had suggested the latter because, like Courier, it is essentially a sans-serif font. See the example text below (created by TEXT statements of PROC SGPLOT) where the digit strings help counting characters.&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="One proportional and three fixed-width fonts." style="width: 237px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109849iE83BB211E7C07BE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="font_comparison.png" alt="One proportional and three fixed-width fonts." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;One proportional and three fixed-width fonts.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 10:22:25 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2025-09-10T10:22:25Z</dc:date>
    <item>
      <title>SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974386#M25648</link>
      <description>&lt;P&gt;When I'm creating a&amp;nbsp;x-axis table using GTL axistable statement in a layout overlay statement, I find the&amp;nbsp;&amp;nbsp;x-axis table label (see below part marked as yellow) could not align, I tried to use labelhalign=left or labeljustify=left, but in vain. I also tried tickvaluehalign=left, but doesn't work.Any help are appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MingC_1-1757317032795.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109694iD867FB44C5F22CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MingC_1-1757317032795.png" alt="MingC_1-1757317032795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc template;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;define statgraph lineplot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;begingraph/attrpriority=none datacontrastcolors=(red blue&amp;nbsp;orange);
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;entrytitle halign=left "&amp;amp;cat."/&amp;nbsp; textattrs=(size=8) ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layout lattice / columns=1 rows=3 rowweights=(0.87 0.03 0.1) columndatarange=union rowdatarange=union;
&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*cell&amp;nbsp;with line plot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layout overlay / yaxisopts=(type=log logopts=(base=2 tickintervalstyle=logexpand
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tickvaluelist=(32 64 256 1024 4096 16384 65536 262144 1048576 /*4194304 16777216*/) tickvaluepriority=true )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;label="Median titre" labelattrs=(size=9pt) tickvalueattrs=(size=8pt))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xaxisopts=(display=(TICKS TICKVALUES LABEL line) label="Timepoint" labelattrs=(size=9pt) tickvalueattrs=(size=8pt));
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    seriesplot&amp;nbsp; x=avisit_wk&amp;nbsp;y=_median / group = AVALCAT display=all groupdisplay&amp;nbsp;= cluster clusterwidth&amp;nbsp;= 0.2 name = 'series';&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    scatterplot x=avisit_wk&amp;nbsp;y=_median /yerrorlower=_q1 yerrorupper=_q3
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;  ERRORBARATTRS=(pattern=dot) group = AVALCAT groupdisplay&amp;nbsp;= cluster clusterwidth&amp;nbsp;= 0.2 ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discretelegend&amp;nbsp;"series" / title='' titleattrs=(size=9pt) valueattrs=(size=9pt)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        displayclipped&amp;nbsp;= true across=4 border=false location=outside halign=center valign=bottom;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endlayout;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*cell&amp;nbsp;with axistable&amp;nbsp;values (n);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layout overlay ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;entry halign=left "n"/textattrs=(size=9pt);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endlayout;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layout overlay / walldisplay=none halign=left&amp;nbsp;xaxisopts=(tickvalueattrs=(size=8pt) display=none)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*yaxisopts=(display=(tickvalues&amp;nbsp;) tickvaluehalign=left)*/;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;axistable&amp;nbsp;x=avisit_wk&amp;nbsp;value=n /display=(label) /*labelhalign=left labeljustify=left*/ valueattrs=(size=9pt) labelattrs=(size=9pt) &lt;BR /&gt;              class=AVALCAT colorgroup=AVALCAT;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endlayout;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;endgraph;
&amp;nbsp; end;
run;
ods&amp;nbsp;graphics on/noborder;&amp;nbsp;&amp;nbsp;
ods noptitle;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 09:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974386#M25648</guid>
      <dc:creator>MingC</dc:creator>
      <dc:date>2025-09-08T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974405#M25649</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/477733"&gt;@MingC&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/477733"&gt;@MingC&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(...) I tried to use labelhalign=left or labeljustify=left, but in vain.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sadly, the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm#n0y1rj78oygf5zn1u09xhvo773ji" target="_blank" rel="noopener"&gt;documentation of both these options&lt;/A&gt; says:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;TABLE class="xisDoc-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="xisDoc-restriction"&gt;Restriction&lt;/TH&gt;
&lt;TD class="xisDoc-summaryText"&gt;This option applies only to Y-axis tables.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/477733"&gt;@MingC&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I also tried tickvaluehalign=left, but doesn't work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think this option does not apply to the axis table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Unless someone else has a better idea, here is a workaround: Use a non-proportional (a.k.a. fixed-width) font for the labels to be left-aligned and pad the shorter labels with trailing non-breaking spaces so that they match the length of the longest label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Example:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.prdsale;
if division=:'E' then division='EDU';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm#n08wvuawzpwf1kn18d3b3zyx7hp3" target="_blank" rel="noopener"&gt;PROC TEMPLATE example code from the AXISTABLE documentation&lt;/A&gt;, the x-axis table obtained with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgrender data=have template=axistable;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Default alignment" style="width: 239px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109698i9E4B17E5917C45B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="default_alignment.png" alt="Default alignment" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Default alignment&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After inserting the below&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm#n0pd7t775atiien1w9j9vbst2d00" target="_blank" rel="noopener"&gt;LABELATTRS= option&lt;/A&gt;&amp;nbsp;into the AXISTABLE statement of the PROC TEMPLATE code&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#999999"&gt;...
headerlabelattrs=GraphLabelText
&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;labelattrs=(family='Lucida Console' size=11pt)&lt;/STRONG&gt;&lt;/FONT&gt;
valueattrs=(size=9pt weight=bold)
...&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;and modifying the short "EDU" value,&lt;/P&gt;
&lt;PRE&gt;data want;
set have;
&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;if division='EDU' then division='EDU'||'A0A0A0A0A0'x;&lt;/STRONG&gt;&lt;/FONT&gt;
run;

proc sgrender data=&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;want&lt;/STRONG&gt;&lt;/FONT&gt; template=axistable;
run;&lt;/PRE&gt;
&lt;P&gt;left-alignment is achieved:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Left-aligned" style="width: 241px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109699iA6FA18AE84779A10/image-size/large?v=v2&amp;amp;px=999" role="button" title="left_aligned.png" alt="Left-aligned" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Left-aligned&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 11:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974405#M25649</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-09-08T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974557#M25650</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;, thank you very much for your quick and detailed response. I was wondering if I there is a proc template options could fix the alignment, which bothered me in the past couple of weeks. After I tried your idea to add&amp;nbsp;'A0A0A0A0A0'x to the end of shorter label value, I can left-align the label now. I'll accept your idea as solution if no better idea appears in one month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MingC_0-1757383624272.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109786i1BA7D4CDEC388F96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MingC_0-1757383624272.png" alt="MingC_0-1757383624272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 02:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974557#M25650</guid>
      <dc:creator>MingC</dc:creator>
      <dc:date>2025-09-09T02:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974602#M25651</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;H5 class="xisDoc-option"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm#n1a4z3nlyqhkdwn1395w6xjhpry4" target="_blank"&gt;VALUEJUSTIFY=&lt;SPAN class="xisDoc-choice"&gt;AUTO&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| LEFT&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| CENTER&lt;/SPAN&gt;&lt;SPAN class="xisDoc-choice"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| RIGHT&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xisDoc-shortDescription"&gt;specifies the justification of the values in the axis table relative to the axis-table width.&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974602#M25651</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2025-09-09T11:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974606#M25652</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/477733"&gt;@MingC&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;, thank you very much for your quick and detailed response. I was wondering if I there is a proc template options could fix the alignment, which bothered me in the past couple of weeks. After I tried your idea to add&amp;nbsp;'A0A0A0A0A0'x to the end of shorter label value, I can left-align the label now.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome. There doesn't seem to be a PROC TEMPLATE option to control that alignment. Glad to hear that the 'A0'x trick worked for you. (The minor imperfection in the alignment shown in your screenshot is due to the &lt;EM&gt;proportional&lt;/EM&gt; font you are using.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach would be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p1gez34ju0gow4n1hfur1zztmmwq.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;SG annotation&lt;/A&gt;. Continuing the example from the previous post:&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;%sganno;

data anno;
%sgtext(reset=all, id="xtlabel", label="EDU", textcolor="GraphData1:contrastcolor", textsize=9, textweight="bold",
        x1=0, x1space="layoutpixel", y1=69, y1space="layoutpixel", anchor="left");
%sgtext(label="CONSUMER", textcolor="GraphData2:contrastcolor", width=90, y1=55);
run;
&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;proc template;
  define statgraph axistable;
    begingraph; 
      entrytitle "Average Product Sales By Division and Country";
      layout overlay / cycleattrs=true &lt;FONT color="#000000"&gt;&lt;STRONG&gt;pad=(left=18px)&lt;/STRONG&gt;&lt;/FONT&gt; 
        yaxisopts=(offsetmax=0.15 label="Sales By Country"); 
        innermargin / align=bottom opaque=true backgroundcolor=cxf5f5f5;
          axistable x=product value=actual / 
            name="division" stat=mean display=(&lt;FONT color="#000000"&gt;&lt;STRONG&gt;values&lt;/STRONG&gt;&lt;/FONT&gt;)
            headerlabel="Sales By Division"
            headerlabelattrs=GraphLabelText
            valueattrs=(size=9pt weight=bold)
            colorgroup=division class=division;
        endinnermargin;
        barchart category=product y=actual / name="country" 
          barlabel=true barlabelformat=dollar5.0
          stat=mean group=country groupdisplay=cluster;
        discretelegend "country" / title="Country:" location=inside
          valign=top;
        &lt;FONT color="#000000"&gt;&lt;STRONG&gt;annotate / ID="xtlabel";&lt;/STRONG&gt;&lt;/FONT&gt; 
      endlayout; 
   endgraph;
 end;
run;&lt;/FONT&gt;

&lt;FONT color="#999999"&gt;proc sgrender data=&lt;FONT color="#000000"&gt;&lt;STRONG&gt;have&lt;/STRONG&gt;&lt;/FONT&gt; template=axistable&lt;/FONT&gt; &lt;STRONG&gt;sganno=anno&lt;/STRONG&gt;;
&lt;FONT color="#999999"&gt;run;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;display=(values)&lt;/FONT&gt; option in the AXISTABLE statement suppresses the original labels, which are then replaced by the labels&amp;nbsp;(here: hard-coded) in the annotation dataset ANNO. The new &lt;FONT face="courier new,courier"&gt;pad=&lt;/FONT&gt; option of the LAYOUT statement provides the space on the left needed for those labels. Their vertical positioning (i.e., determining the y1 coordinates) is cumbersome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Using SG annotation" style="width: 245px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109797i0AA641949D7F1151/image-size/large?v=v2&amp;amp;px=999" role="button" title="using_anno.png" alt="Using SG annotation" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Using SG annotation&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 11:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974606#M25652</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-09-09T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974702#M25654</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp; thank you for your response. But I don't think&amp;nbsp;VALUEJUSTIFY works for x-axis table, because I checked your link and found it only works for y-axis tables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MingC_0-1757470394198.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109842i287041534B5716BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MingC_0-1757470394198.png" alt="MingC_0-1757470394198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 02:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974702#M25654</guid>
      <dc:creator>MingC</dc:creator>
      <dc:date>2025-09-10T02:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974703#M25655</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;,&amp;nbsp;Thank you for sharing another approach for SG annotation, I have little knowledge about SG annotation and never use it, but I’ll try to self-learn it.&lt;/P&gt;&lt;P&gt;For your first approach, yes, you have very smart eyes which found the minor imperfection in the alignment in my screenshot. I can only use the “Courier” font due to project restriction. I tried the font “Lucida Console” mentioned in your first approach, the labels can exactly left-aligned. It seems each 'A0' is for one blank space when the font is “Lucida Console”. But it seems each 'A0' is less that one blank space when using “Courier” font, I don’t know the logic behind, that’s why there is minor imperfection in my alignment.&lt;/P&gt;&lt;P&gt;It could be great if you can share more knowledge about proportional font, and the logic behind 'A0' for blank space. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 02:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974703#M25655</guid>
      <dc:creator>MingC</dc:creator>
      <dc:date>2025-09-10T02:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974729#M25656</link>
      <description>&lt;P&gt;Courier is a &lt;EM&gt;proportional&lt;/EM&gt;&amp;nbsp; font, i.e., narrow characters like "i" occupy less space than wide characters like "m." This variability makes it virtually impossible to achieve perfect alignment by using space characters such as '20'x or 'A0'x because the exact amount of horizontal space required is most likely not an integer multiple of the width of a space character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This problem does not occur with &lt;EM&gt;non-proportional&lt;/EM&gt; fonts (where all characters have the same width) such as Courier New, Cumberland AMT or Lucida Console. I had suggested the latter because, like Courier, it is essentially a sans-serif font. See the example text below (created by TEXT statements of PROC SGPLOT) where the digit strings help counting characters.&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="One proportional and three fixed-width fonts." style="width: 237px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109849iE83BB211E7C07BE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="font_comparison.png" alt="One proportional and three fixed-width fonts." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;One proportional and three fixed-width fonts.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 10:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974729#M25656</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-09-10T10:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GTL: How to left-align x-axis table labels created by  GTL axistable statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974784#M25658</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;,&amp;nbsp;thank you for the detailed response. I love your examples, they are quite straight-forward for me, I think I know a little for the non-proportional font now.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 01:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GTL-How-to-left-align-x-axis-table-labels-created-by-GTL/m-p/974784#M25658</guid>
      <dc:creator>MingC</dc:creator>
      <dc:date>2025-09-11T01:29:44Z</dc:date>
    </item>
  </channel>
</rss>

