<?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: How to avoid the datalabels overlapping on Error bars in Forest Plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786497#M22440</link>
    <description>&lt;P&gt;Instead using the error bar on the SCATTERPLOT statement, use a HIGHLOWPLOT plot. Set the LOWCAP=NONE and HIGHCAP=none, and set the HIGHLABEL to be the same variable as the DATALABEL. The change should look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;layout overlay /xaxisopts=(label=' ' linearopts =(tickvaluelist=(-2 0 2) viewmin=-2 viewmax=2))
	/*type=discrete discreteopts =(  tickvaluelist=( '-0.5' '0' '0.5' '1' '2')))*/
		    y2axisopts = (display=none);
		    scatterplot x=OR y=ORCI / markerattrs = (symbol=diamondfilled size=0 color=white) yaxis=y2;
            highlowplot y=ORCI low=lcl high=ucl / lowcap=none highcap=none highlabel=OR labelattrs=(size=7) &lt;BR /&gt;                        lineattrs=(color=darkgrey) yaxis=y2;
		    scatterplot x=OR y=ORCI  /
		         markerattrs = (symbol=diamondfilled size=10 color=darkgrey)
		          yaxis=y2;
		   referenceline x=0;
		   annotate;

  		endlayout;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 16:00:45 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2021-12-17T16:00:45Z</dc:date>
    <item>
      <title>How to avoid the datalabels overlapping on Error bars in Forest Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786477#M22439</link>
      <description>&lt;P&gt;I am creating the data labels on the forest plot. However My data labels overlapping with the Error bars. How I can Avoid this. I tried using DATALABELPOSITION But no luck. I thought of Creating Blank space before dataset ( data point values). However it won't change it dynamically , if any values changes in future. Can you please suggest the Options.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;Example: How the labels should look!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1639752873273.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66824iE9286FB76A49FE2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1639752873273.png" alt="SASuserlot_0-1639752873273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;How My labels are displaying&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1639752973883.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66825i267C0B1A19FEC0F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1639752973883.png" alt="SASuserlot_1-1639752973883.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;layout overlay /xaxisopts=(label=' ' linearopts =(tickvaluelist=(-2 0 2) viewmin=-2 viewmax=2))
	/*type=discrete discreteopts =(  tickvaluelist=( '-0.5' '0' '0.5' '1' '2')))*/
		    y2axisopts = (display=none);
		    scatterplot x=OR y=ORCI / 
			markerattrs = (symbol=diamondfilled size=0 color=white) yaxis=y2;
		    scatterplot x=OR y=ORCI  / &lt;FONT color="#FF00FF"&gt;datalabel = OR datalabelattrs = (size=7) datalabelposition=right&lt;/FONT&gt; 
		         markerattrs = (symbol=diamondfilled size=10 color=darkgrey)
		          yaxis=y2
		           xerrorlower = lcl xerrorupper = ucl errorbarcapshape = none;
		   referenceline x=0;
		   annotate;

  		endlayout;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 14:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786477#M22439</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-12-17T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the datalabels overlapping on Error bars in Forest Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786497#M22440</link>
      <description>&lt;P&gt;Instead using the error bar on the SCATTERPLOT statement, use a HIGHLOWPLOT plot. Set the LOWCAP=NONE and HIGHCAP=none, and set the HIGHLABEL to be the same variable as the DATALABEL. The change should look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;layout overlay /xaxisopts=(label=' ' linearopts =(tickvaluelist=(-2 0 2) viewmin=-2 viewmax=2))
	/*type=discrete discreteopts =(  tickvaluelist=( '-0.5' '0' '0.5' '1' '2')))*/
		    y2axisopts = (display=none);
		    scatterplot x=OR y=ORCI / markerattrs = (symbol=diamondfilled size=0 color=white) yaxis=y2;
            highlowplot y=ORCI low=lcl high=ucl / lowcap=none highcap=none highlabel=OR labelattrs=(size=7) &lt;BR /&gt;                        lineattrs=(color=darkgrey) yaxis=y2;
		    scatterplot x=OR y=ORCI  /
		         markerattrs = (symbol=diamondfilled size=10 color=darkgrey)
		          yaxis=y2;
		   referenceline x=0;
		   annotate;

  		endlayout;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786497#M22440</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-12-17T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the datalabels overlapping on Error bars in Forest Plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786535#M22441</link>
      <description>&lt;P&gt;Perfect. It worked. Thanks Dan.&lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1639762605211.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66834i2F8577F71A984509/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1639762605211.png" alt="SASuserlot_0-1639762605211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 17:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-avoid-the-datalabels-overlapping-on-Error-bars-in-Forest/m-p/786535#M22441</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-12-17T17:37:00Z</dc:date>
    </item>
  </channel>
</rss>

