<?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 bar chart squashed in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45366#M5985</link>
    <description>I'm trying to output this bar chart with 'Courier New' text, as soon as I specify FTEXT = 'Courier New' in the GOPTIONS, the output becomes very squashed and narrow. &lt;BR /&gt;
&lt;BR /&gt;
When I don't specify FTEXT within GOPTIONS it looks as though I get the default 'Simulate' text although the width of the graphical output is fine.&lt;BR /&gt;
&lt;BR /&gt;
I've tried changing the HSIZE/VSIZE options along with trying XPIXELS/YPIXELS but having no effect for me. I'm sending the output to ODS RTF.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas??</description>
    <pubDate>Tue, 16 Jun 2009 15:26:41 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-16T15:26:41Z</dc:date>
    <item>
      <title>bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45366#M5985</link>
      <description>I'm trying to output this bar chart with 'Courier New' text, as soon as I specify FTEXT = 'Courier New' in the GOPTIONS, the output becomes very squashed and narrow. &lt;BR /&gt;
&lt;BR /&gt;
When I don't specify FTEXT within GOPTIONS it looks as though I get the default 'Simulate' text although the width of the graphical output is fine.&lt;BR /&gt;
&lt;BR /&gt;
I've tried changing the HSIZE/VSIZE options along with trying XPIXELS/YPIXELS but having no effect for me. I'm sending the output to ODS RTF.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas??</description>
      <pubDate>Tue, 16 Jun 2009 15:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45366#M5985</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T15:26:41Z</dc:date>
    </item>
    <item>
      <title>bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45367#M5986</link>
      <description>my sample code ....&lt;BR /&gt;
&lt;BR /&gt;
**** INPUT SAMPLE PAIN SCALE DATA.;&lt;BR /&gt;
data pain;&lt;BR /&gt;
label subject = "Subject"&lt;BR /&gt;
      pain    = "Pain Score"&lt;BR /&gt;
      trt     = "Treatment";&lt;BR /&gt;
input subject pain trt @@;&lt;BR /&gt;
datalines;&lt;BR /&gt;
113	1 1		420	1 2		780	0 3&lt;BR /&gt;
121	1 1		423	0 2		784	0 3&lt;BR /&gt;
122	1 1		465	4 2		785	1 3&lt;BR /&gt;
124	4 1		481	3 2		786	3 3&lt;BR /&gt;
164	4 1		482	0 2		787	0 3&lt;BR /&gt;
177	4 1		483	0 2		789	0 3&lt;BR /&gt;
178	0 1		484	0 2		790	2 3&lt;BR /&gt;
179	1 1		485	0 2		791	0 3&lt;BR /&gt;
184	0 1		486	1 2		793	3 3&lt;BR /&gt;
185	0 1		487	0 2		794	2 3&lt;BR /&gt;
186	3 1		489	0 2		795	1 3&lt;BR /&gt;
187	0 1		490	1 2		796	4 3&lt;BR /&gt;
188	1 1		491	0 2		797	2 3&lt;BR /&gt;
189	3 1		493	2 2		798	1 3&lt;BR /&gt;
190	3 1		494	1 2		799	2 3&lt;BR /&gt;
191	2 1		495	0 2		800	2 3&lt;BR /&gt;
192	3 1		496	2 2		822	1 3&lt;BR /&gt;
193	4 1		498	0 2		841	1 3&lt;BR /&gt;
194	4 1		499	2 2		842	1 3&lt;BR /&gt;
195	0 1		500	2 2		847	2 3&lt;BR /&gt;
196	4 1		521	1 2		863	1 3&lt;BR /&gt;
197	1 1		522	1 2		881	2 3&lt;BR /&gt;
198	4 1		541	1 2		966	1 3&lt;BR /&gt;
199	3 1		542	0 2		967	0 3&lt;BR /&gt;
100	4 1		561	3 2		968	0 3&lt;BR /&gt;
121	2 1		562	2 2		981	1 3&lt;BR /&gt;
122	2 1		581	2 2		982	1 3&lt;BR /&gt;
123	4 1		561	1 2		985	0 3&lt;BR /&gt;
124	2 1		564	1 2		986	0 3&lt;BR /&gt;
141	3 1		566	1 2		987	0 3&lt;BR /&gt;
142	2 1		567	2 2		989	2 3&lt;BR /&gt;
143	2 1		568	2 2		990	3 3&lt;BR /&gt;
147	4 1		569	0 2		991	0 3&lt;BR /&gt;
161	4 1		581	0 2		992	2 3&lt;BR /&gt;
162	4 1		582	3 2		993	1 3&lt;BR /&gt;
163	4 1		584	1 2		994	0 3&lt;BR /&gt;
164	0 1		585	0 2		995	1 3&lt;BR /&gt;
165	2 1		586	1 2		996	0 3&lt;BR /&gt;
166	1 1		587	1 2		997	3 3&lt;BR /&gt;
167	3 1		591	1 2		998	0 3&lt;BR /&gt;
181	2 1		592	1 2		999	0 3&lt;BR /&gt;
221	4 1		594	1 2		706	0 3&lt;BR /&gt;
281	4 1		595	0 2		707	3 3&lt;BR /&gt;
282	4 1		596	0 2		708	1 3&lt;BR /&gt;
361	4 1		597	0 2		709	0 3&lt;BR /&gt;
362	4 1		601	0 2		710	1 3&lt;BR /&gt;
364	3 1		602	1 2		711	1 3&lt;BR /&gt;
365	4 1		603	2 2		712	0 3&lt;BR /&gt;
366	3 1		604	1 2		713	4 3&lt;BR /&gt;
367	4 1		605	1 2		714	0 3&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
**** MAKE FORMATS FOR CHART.;&lt;BR /&gt;
proc format;&lt;BR /&gt;
   value trt&lt;BR /&gt;
      1 = 'Placebo'&lt;BR /&gt;
      2 = 'Old Drug'&lt;BR /&gt;
      3 = 'New Drug';&lt;BR /&gt;
&lt;BR /&gt;
   value score&lt;BR /&gt;
      0 = '0'&lt;BR /&gt;
      1 = '1-2'&lt;BR /&gt;
      2 = '3-4'&lt;BR /&gt;
      3 = '5-6'&lt;BR /&gt;
      4 = '7-8';&lt;BR /&gt;
&lt;BR /&gt;
   picture newpct (round)&lt;BR /&gt;
      0 = " "&lt;BR /&gt;
      0 &amp;lt; - &amp;lt; .5 = "&amp;lt;1%"&lt;BR /&gt;
      .6 &amp;lt; - high = "000%";&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
proc sort&lt;BR /&gt;
   data = pain;&lt;BR /&gt;
      by trt;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 16 Jun 2009 15:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45367#M5986</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T15:34:29Z</dc:date>
    </item>
    <item>
      <title>bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45368#M5987</link>
      <description>sample code continued (wouldn't fit in one post in the preview window) ....&lt;BR /&gt;
&lt;BR /&gt;
**** GET FREQUENCY COUNTS FOR CHART AND PUT IN FREQOUT DATA SET.;&lt;BR /&gt;
proc freq&lt;BR /&gt;
   data = pain &lt;BR /&gt;
   noprint;&lt;BR /&gt;
      by trt;&lt;BR /&gt;
&lt;BR /&gt;
      tables pain /out = freqout;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
**** NEED PROC TEMPLATE STEP TO CONTROL PAGE MARGINS;&lt;BR /&gt;
PROC TEMPLATE;&lt;BR /&gt;
	DEFINE STYLE MYTHEME;&lt;BR /&gt;
	PARENT = STYLES.THEME;&lt;BR /&gt;
		REPLACE BODY FROM DOCUMENT&lt;BR /&gt;
		"UNDEF MARGINS SO WE GET THE MARGINS FROM THE PRINTER OR SYS OPTION"&lt;BR /&gt;
		/&lt;BR /&gt;
		BOTTOMMARGIN = _UNDEF_&lt;BR /&gt;
		TOPMARGIN = _UNDEF_&lt;BR /&gt;
		RIGHTMARGIN = _UNDEF_&lt;BR /&gt;
		LEFTMARGIN = _UNDEF_;&lt;BR /&gt;
END;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
**** OPEN ODS DESTINATION, SET PAGE ORIENTATION AND MARGINS IN OPTIONS STATEMENT&lt;BR /&gt;
**** INCLUDE THE STYLE (MYTHEME) CREATED FROM PROC TEMPLATE STEP;&lt;BR /&gt;
OPTIONS ORIENTATION=LANDSCAPE TOPMARGIN=2.12 CM BOTTOMMARGIN=2.54 CM NODATE NONUMBER;&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
ODS NORESULTS;&lt;BR /&gt;
ODS RTF FILE="C:\TEMP\TEST2.RTF" STYLE=MYTHEME;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
**** DEFINE GRAPHICS OPTIONS:  SET DEVICE DESTINATION TO MS &lt;BR /&gt;
**** OFFICE CGM FILE, REPLACE ANY EXISTING CGM FILE, RESET ANY &lt;BR /&gt;
**** SYMBOL DEFINITIONS, AND SET BACKGROUND TO WHITE AND OTHER **** COLORS TO BLACK.;&lt;BR /&gt;
goptions reset = all&lt;BR /&gt;
		 VSIZE = 6IN&lt;BR /&gt;
         HSIZE = 9IN&lt;BR /&gt;
         cback = white &lt;BR /&gt;
         colors = (black)&lt;BR /&gt;
		 FTEXT = 'Courier New';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
**** DEFINE BAR PATTERNS: WHITE = PLACEBO, GRAY = OLD DRUG,&lt;BR /&gt;
**** BLACK = NEW DRUG.; &lt;BR /&gt;
pattern1 value = solid color = white;&lt;BR /&gt;
pattern2 value = solid color = gray;&lt;BR /&gt;
pattern3 value = solid color = black ;&lt;BR /&gt;
&lt;BR /&gt;
**** DEFINE HORIZONTAL AXIS OPTIONS.;&lt;BR /&gt;
axis1 label = (h = 1 'Pain Score')&lt;BR /&gt;
      value = (h = 1 )&lt;BR /&gt;
      order = (0 to 4 by 1);&lt;BR /&gt;
&lt;BR /&gt;
**** DEFINE VERTICAL AXIS OPTIONS.;&lt;BR /&gt;
axis2 label = (h = 1.2 r = 0 a = 90  'Percentage of Patients' )&lt;BR /&gt;
      order = (0 to 50 by 10); &lt;BR /&gt;
&lt;BR /&gt;
**** CREATE BAR CHART.  PERCENTAGE OF PATIENTS IS ON THE Y AXIS, &lt;BR /&gt;
**** PAIN SCORE BY TREATMENT IS ON THE X AXIS.; &lt;BR /&gt;
proc gchart&lt;BR /&gt;
   data = freqout;&lt;BR /&gt;
&lt;BR /&gt;
   vbar3d pain /group = trt&lt;BR /&gt;
                sumvar = percent&lt;BR /&gt;
                maxis = axis1&lt;BR /&gt;
                raxis = axis2&lt;BR /&gt;
                midpoints = 0 1 2 3 4&lt;BR /&gt;
                cframe = white&lt;BR /&gt;
                coutline = black&lt;BR /&gt;
                outside = sum&lt;BR /&gt;
                patternid = group;&lt;BR /&gt;
&lt;BR /&gt;
   format trt trt. &lt;BR /&gt;
          pain score.&lt;BR /&gt;
          percent newpct.;&lt;BR /&gt;
   title1 j = c h = 1.5 color = black &lt;BR /&gt;
          "Figure 6.3";&lt;BR /&gt;
   title2 j = c h = 1.5 color = black&lt;BR /&gt;
          "Summary of Pain Score by Treatment";&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF CLOSE;&lt;BR /&gt;
ODS RESULTS;&lt;BR /&gt;
ODS LISTING;</description>
      <pubDate>Tue, 16 Jun 2009 15:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45368#M5987</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45369#M5988</link>
      <description>Hi:&lt;BR /&gt;
  I tried FTEXT='Courier New' in SAS 9.2 and the font looked OK. Your best bet for help on this issue may be to contact SAS Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
  There is also a good discussion of FONTS and RTF/Word in this Tech Support document:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/techsup/technote/ts674/ts674.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts674/ts674.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
To open a track with Tech support, go to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 16 Jun 2009 17:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45369#M5988</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-16T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45370#M5989</link>
      <description>Thanks Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
The font looks fine using Courier New, it's the actual size of the bar chart which become much smaller.&lt;BR /&gt;
&lt;BR /&gt;
I've opened a track with Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
John.</description>
      <pubDate>Wed, 17 Jun 2009 09:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45370#M5989</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-17T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart squashed</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45371#M5990</link>
      <description>Hi:&lt;BR /&gt;
  Good you're working with Tech Support...I meant to write back that both my font and the bar chart looked OK. Nothing mis-shaped.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 17 Jun 2009 14:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/bar-chart-squashed/m-p/45371#M5990</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-17T14:37:47Z</dc:date>
    </item>
  </channel>
</rss>

