<?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 How to annotate N counts below X axis in SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763180#M21893</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:I am reposting this question in graphics group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to produce a graph from sgpnel. Please see the attatched to see desired output.&lt;/P&gt;
&lt;P&gt;the requirement is to display the N count below the X axis. I am finding a major challenge to do annotation in sgpanel output.&lt;/P&gt;
&lt;P&gt;Initially, I displayed N count along the X axis using colaxistable statement in proc sgpanel procedure. but this option will provide us N count inside the graph area, which customer don't want now.&lt;/P&gt;
&lt;P&gt;1) Are we able to do annotations to get N count below X axis in sgpanel procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Any input will help me.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 03:15:14 GMT</pubDate>
    <dc:creator>mnithinshetty</dc:creator>
    <dc:date>2021-08-23T03:15:14Z</dc:date>
    <item>
      <title>How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763180#M21893</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:I am reposting this question in graphics group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to produce a graph from sgpnel. Please see the attatched to see desired output.&lt;/P&gt;
&lt;P&gt;the requirement is to display the N count below the X axis. I am finding a major challenge to do annotation in sgpanel output.&lt;/P&gt;
&lt;P&gt;Initially, I displayed N count along the X axis using colaxistable statement in proc sgpanel procedure. but this option will provide us N count inside the graph area, which customer don't want now.&lt;/P&gt;
&lt;P&gt;1) Are we able to do annotations to get N count below X axis in sgpanel procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Any input will help me.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 03:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763180#M21893</guid>
      <dc:creator>mnithinshetty</dc:creator>
      <dc:date>2021-08-23T03:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763183#M21894</link>
      <description>&lt;P&gt;Data:&amp;nbsp; Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your current Proc Sgpanel code would help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A non-docx document. Some of use won't or can't by organization policy open such from unknown sources.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 03:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763183#M21894</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-23T03:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763289#M21897</link>
      <description>&lt;P&gt;Someting like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.cars out=cars;
	by origin;
run;
data cars;
	set cars;
	Dummy=1;
	label dummy='N';
run;

proc sgpanel data=cars ;
	where origin in ('Europe' 'USA');
	panelby origin  ;
	vbox length / category=type nomean nofill ;
	colaxistable type / 
		class=type classdisplay=cluster 
		valueattrs=(size=9pt weight=bold)
		nolabel;
	colaxistable Dummy / 
		valueattrs=(size=9pt) 
		pad=5;
	colaxis display=none;
	rowaxis display=none;
	rowaxis grid minorgrid;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763289#M21897</guid>
      <dc:creator>a_SAS_sin</dc:creator>
      <dc:date>2021-08-23T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763408#M21899</link>
      <description>&lt;P&gt;Yes. But In your example N count is still inside the data area. right. ! it should be completely outside. there are two ways I may think of, I am not sure it is going to meet my expectation, 1)use sgrender procedure and then boxplot template + axis table. 2)need to expand annotations that fit to X labels... I tried second option here, by creating formats which has tick marks label along with N counts and apply the formats colaxis statement using valuesfotmat= option. as of now it dint work as expected. the problem I am facing is I am not able to separate format applications for each panel. Example attached.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763408#M21899</guid>
      <dc:creator>mnithinshetty</dc:creator>
      <dc:date>2021-08-24T03:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763463#M21900</link>
      <description>&lt;P&gt;To give the notion that the axiatable not "inside the data area" you just need to create some kind of separation; in the code I sent, if you just had a refline on the Y axis with a value of 140 will give you the idea that the axistable is separated from the chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using annotations to exactly place datalabels is quite complex since &lt;SPAN&gt;SGPANEL only allows the values GRAPHPERCENT, GRAPHPIXEL, LAYOUTPERCENT, and LAYOUTPIXEL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using GTL and SGRender might be a solution, but you asked for sgpanel...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/763463#M21900</guid>
      <dc:creator>a_SAS_sin</dc:creator>
      <dc:date>2021-08-24T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to annotate N counts below X axis in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/764106#M21912</link>
      <description>I have received a solution for this requirement.&lt;BR /&gt;Please see the discussion subject "Annotation in proc SGPANEL" in SAS programming forum.&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.</description>
      <pubDate>Thu, 26 Aug 2021 04:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-annotate-N-counts-below-X-axis-in-SGPANEL/m-p/764106#M21912</guid>
      <dc:creator>mnithinshetty</dc:creator>
      <dc:date>2021-08-26T04:37:54Z</dc:date>
    </item>
  </channel>
</rss>

