<?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: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784571#M22395</link>
    <description>&lt;P&gt;Can you include the removed SERIESPLOT statements from your template? Also, what is the format length of your YVAR2 variable?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 17:20:37 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2021-12-07T17:20:37Z</dc:date>
    <item>
      <title>Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784546#M22394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to edit the placement of data labels in a SERIES graph in PROC TEMPLATE. The default settings get me to 95% of what I need, but when I specify the DATALABELPOSITION option, results are not as I would expect and the plot becomes unusable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is one panel that is problematic using the default settings (note the collision with the line):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bstarr_0-1638834474586.png" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66444i7B9897A38566463A/image-dimensions/194x170?v=v2" width="194" height="170" role="button" title="bstarr_0-1638834474586.png" alt="bstarr_0-1638834474586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the same panel after specifying DATALABELPOSITION=BOTTOMRIGHT, thinking the label would simply move down slightly:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bstarr_1-1638835244608.png" style="width: 197px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66447i2C64FA76C89A22E2/image-dimensions/197x169?v=v2" width="197" height="169" role="button" title="bstarr_1-1638835244608.png" alt="bstarr_1-1638835244608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;No matter what I try for DATALABELPOSITION, anything other than AUTO scrunches up the graph. Am I missing something that's making it put the label outside the graph/plot region? Pared down code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc template;
    define statgraph NAME;
      dynamic VAR;
        begingraph / designWidth=2700px designHeight=675px;
            layout dataLattice columnVar=COLVAR / 
                headerLabelDisplay=value 
                rowAxisOpts=(offsetmin=0 linearopts=(tickvalueformat=percent11.0 viewmin=0) display=(tickvalues ticks label)) 
                columnAxisOpts=(display=(tickvalues ticks label));
                layout prototype;
                    referenceline x=XREF / lineattrs=(pattern=2 thickness=1); 
&amp;lt; More seriesplot statements &amp;gt;
                    seriesplot x=XVAR y=YVAR / yaxis=y lineattrs=(color=&amp;amp;PLOTCOLOR thickness=2);
                    seriesplot x=XVAR y=YVAR / yaxis=y display=(markers) markerattrs=(color=&amp;amp;PLOTCOLOR symbol=circleFilled) 
                        datalabel=YVAR2 datalabelattrs=(color=&amp;amp;PLOTCOLOR) datalabelposition=bottomright;
                endlayout;
            endlayout;
        endgraph;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 15:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784546#M22394</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2021-12-07T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784571#M22395</link>
      <description>&lt;P&gt;Can you include the removed SERIESPLOT statements from your template? Also, what is the format length of your YVAR2 variable?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784571#M22395</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-12-07T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784580#M22396</link>
      <description>Thanks for the reply. The omitted SERIESPLOT statements are variants of the following:&lt;BR /&gt;&lt;BR /&gt;seriesplot x=XVAR y=CATEGORY1 / yaxis=y lineattrs=(color=CXD0D0D0 thickness=2);&lt;BR /&gt;...&lt;BR /&gt;seriesplot x=XVAR y=CATEGORY5 / yaxis=y lineattrs=(color=CXD0D0D0 thickness=2);&lt;BR /&gt;&lt;BR /&gt;YVAR2 is a percent11.0 format with length of 8 (same as YVAR and CATEGORY1 -- CATEGORY5).&lt;BR /&gt;XVAR is also a number (best12) with length of 8.</description>
      <pubDate>Tue, 07 Dec 2021 17:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/784580#M22396</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2021-12-07T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785270#M22417</link>
      <description>&lt;P&gt;What do you get if you change the percentage format field width from 11 to 5?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 21:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785270#M22417</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-12-09T21:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785291#M22418</link>
      <description>&lt;P&gt;Great, thanks for the suggestion, I appreciate the assistance. That definitely made a difference, but there is still white space for about a third of the plot. Would you have an idea what else I might be missing?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bstarr_1-1639088217741.png" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66597iFDC99AD1623BD44A/image-dimensions/194x195?v=v2" width="194" height="195" role="button" title="bstarr_1-1639088217741.png" alt="bstarr_1-1639088217741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 23:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785291#M22418</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2021-12-09T23:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Placement of data labels PROC TEMPLATE using DATALABELPOSITION seems incorrect</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785297#M22419</link>
      <description>&lt;P&gt;Also, set OFFSETMAX=0 (or 0.05) on your rowAxisOpts.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 00:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Placement-of-data-labels-PROC-TEMPLATE-using-DATALABELPOSITION/m-p/785297#M22419</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-12-10T00:00:34Z</dc:date>
    </item>
  </channel>
</rss>

