<?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 SGPlot datalabels format when clm option is on in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457328#M15727</link>
    <description>&lt;P&gt;I have the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = &amp;amp;lib..&amp;amp;sasdsn ;
format amyloplastheight 7.1 ;
vbar treat / group=gt response=amyloplastheight stat=mean  dataskin=crisp
					limits=both limitstat=clm groupdisplay=cluster datalabel datalabelattrs=(size=6); 
yaxis label="amyloplastheight (^{unicode mu}m)" grid; 
keylegend /position =bottom title="genotype" sortorder=ascending;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I cannot control the format of the lower and upper limits that are also displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 15:01:17 GMT</pubDate>
    <dc:creator>vstorme</dc:creator>
    <dc:date>2018-04-25T15:01:17Z</dc:date>
    <item>
      <title>SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457328#M15727</link>
      <description>&lt;P&gt;I have the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = &amp;amp;lib..&amp;amp;sasdsn ;
format amyloplastheight 7.1 ;
vbar treat / group=gt response=amyloplastheight stat=mean  dataskin=crisp
					limits=both limitstat=clm groupdisplay=cluster datalabel datalabelattrs=(size=6); 
yaxis label="amyloplastheight (^{unicode mu}m)" grid; 
keylegend /position =bottom title="genotype" sortorder=ascending;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I cannot control the format of the lower and upper limits that are also displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457328#M15727</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2018-04-25T15:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457368#M15729</link>
      <description>&lt;P&gt;Where do you want the confidence limits to appear?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us some sample data if you want a code answer?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457368#M15729</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-04-25T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457423#M15731</link>
      <description>&lt;P&gt;Also which version of SAS are you running. There have been significant additions to graphics option in each release for quite awhile. A solution that works for SAS 9.4m5 may not work for 9.4m4.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/457423#M15731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-25T17:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/459203#M15828</link>
      <description>&lt;P&gt;I can give you an example with a sashelp datastep:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style = analysis ;
title font=Arial height=14pt 'barchart with 95% CL' ; 
proc sgplot data=sashelp.shoes;
format sales 8.2;
vbar region / response=sales stat=mean  dataskin=crisp
				   limits=both limitstat=clm groupdisplay=cluster 
                   datalabel datalabelattrs=(size=6); ;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the bottom, the mean is displayed with format 8.2 as requested, however also the limits are displayed with another format. I did not particularly want the limits in the bottom, but if they are, they should have the same format.&lt;/P&gt;
&lt;P&gt;I am using SAS 9.4 1M5&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 07:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/459203#M15828</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2018-05-02T07:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816170#M22885</link>
      <description>&lt;P&gt;Did you solve it?&lt;/P&gt;
&lt;P&gt;I'm struggling with the same thing...&lt;/P&gt;
&lt;P&gt;I'm using stat=mean on a variable containing 1/0 (formatted with percent8.)&amp;nbsp; to get percentages (because I want upper and lower clm. The datalabel options gives the formatted value on the middle row but the upper limit and lower limit value is in decimal... Any way to change these to percent?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andypandy_swe_0-1654162875998.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71966i709164B2212EAA23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andypandy_swe_0-1654162875998.png" alt="andypandy_swe_0-1654162875998.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816170#M22885</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2022-06-02T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816184#M22886</link>
      <description>&lt;P&gt;I did not solve it but now I am using axistables (&lt;A href="https://support.sas.com/rnd/datavisualization/papers/2018/2180-2018.pdf" target="_blank"&gt;https://support.sas.com/rnd/datavisualization/papers/2018/2180-2018.pdf&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816184#M22886</guid>
      <dc:creator>VeroniqueS</dc:creator>
      <dc:date>2022-06-02T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot datalabels format when clm option is on</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816268#M22892</link>
      <description>&lt;P&gt;For the record, the DATALABEL option on bar charts cannot put a label on top of a bar when there are limits enabled. If you try it, we will automatically switch to axis tables internally to display the information (we do this as a convenience). If you know that you want to customize these labels in this situation, it is best to go ahead and use axis tables directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 22:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-datalabels-format-when-clm-option-is-on/m-p/816268#M22892</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-06-02T22:32:19Z</dc:date>
    </item>
  </channel>
</rss>

