<?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: Data table beneath the graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440199#M15192</link>
    <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 15:15:43 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-02-26T15:15:43Z</dc:date>
    <item>
      <title>Data table beneath the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440015#M15179</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options formchar=",";

proc template;
	define statgraph barblock;
		begingraph;
			entrytitle 'Total Sales Across Regions';
			layout lattice / rowweights=(.60 0.05 .35) ;
				layout overlay;
					barchart x=region y=sales / group=region barlabel=true dataskin=gloss;
				endlayout;
				layout overlay / xaxisopts=(type=discrete label='Number of Stores per Region' 
					display=(label)) walldisplay=none;
					entry halign=left '                                 Median                              col1                                   col2                         col3                                 col4';
				endlayout;
				blockplot x=region block=shoes_ / class=product display=(outline values label fill) 
					repeatedvalues=true DATATRANSPARENCY=0 display=all /*EXTENDBLOCKONMISSING=FALSE*/
				valuevalign=bottom
				VALUEFITPOLICY=truncate VALUESPLITCHAR=" ," VALUESPLITCHARDROP=TRUE valueattrs=(size=7pt)
				valuehalign=left repeatedvalues=true labelattrs=(size=8pt);
				;
			endlayout;
		endgraph;
	end;
run;

proc sort data=sashelp.shoes out=new;
	by region product;
run;

proc means data=new noprint;
	where region in('Africa' 'Asia' 'Canada' 'Pacific' 'United States');
	id sales;
	by region product;
	var stores;
	output out=shoes_ sum=;
run;

data shoes;
 	set shoes_;
	by region product;
	shoes_=compress(put(stores,4.)||" ,"||strip(put(stores,4.)));
run;

proc sgrender data=shoes template=barblock;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18800i86C1FDB03B6AF911/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above shown is the sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display a data table under the below a SAS Graph and after searching few sites i got above sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my requirement is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I need to display a DATA table which has 10 variable and 20 observations along with the graph.&lt;/P&gt;&lt;P&gt;2) For the table that i need to display in the graph i need to display Variable names as well.&lt;/P&gt;&lt;P&gt;3) I have each observation concatenated with&amp;nbsp; ",' (comma) inside the data set and this i did because i can not able to accommodate the lengthy data inside the graph. Hence i have concatenated separated by comma to split data by using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;(VALUEFITPOLICY=truncate VALUESPLITCHAR=" ," VALUESPLITCHARDROP=TRUE&lt;/CODE&gt;).&lt;/P&gt;&lt;P&gt;The splitting is not happened inside the graph data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me to split the data inside the data table that being displayed in the graph and also suggest me how to accommodate more variables and observation inside the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 09:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440015#M15179</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2018-02-25T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data table beneath the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440199#M15192</link>
      <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440199#M15192</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-02-26T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data table beneath the graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440202#M15193</link>
      <description>SAS 9.4 Windows version and I need to save this in RTF file</description>
      <pubDate>Mon, 26 Feb 2018 15:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Data-table-beneath-the-graph/m-p/440202#M15193</guid>
      <dc:creator>Hari6</dc:creator>
      <dc:date>2018-02-26T15:21:55Z</dc:date>
    </item>
  </channel>
</rss>

