<?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: sgplot datalabel font-size in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8479#M47</link>
    <description>And, for the sake of those that might be wondering how to do this with traditional "proc gplot" ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot interpol=none pointlabel=("#name" height=1.5pct);&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot height*age=1;&lt;BR /&gt;
run;</description>
    <pubDate>Fri, 23 Apr 2010 12:13:18 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2010-04-23T12:13:18Z</dc:date>
    <item>
      <title>sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8475#M43</link>
      <description>How do I increase the font-size of the datalabels (ie inj_yr)?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=nu2s description="Plot";&lt;BR /&gt;
	band x=cnt upper=emp_upper lower=emp_lower / &lt;BR /&gt;
		transparency=.655 group=category name="bmi";&lt;BR /&gt;
	xaxis min=5 max=50 label='Injury' grid;&lt;BR /&gt;
	yaxis min=50 max=250  label='# Employees'  grid;&lt;BR /&gt;
	keylegend "bmi" / position=bottomright location=outside across=4 title='Rate: ';&lt;BR /&gt;
		series x=inj_non y=emp_non / datalabel=inj_yr lineattrs=(pattern=solid thickness=2px)  &lt;BR /&gt;
		markerattrs=(symbol=circlefilled ) markers group=job_class name="pts";</description>
      <pubDate>Thu, 22 Apr 2010 21:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8475#M43</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-04-22T21:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8476#M44</link>
      <description>Currently, you can only do it through an ODS style. You can create a small style that inherits from the style you're using but only adjusts the datalabel font size. Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style styles.mystyle;&lt;BR /&gt;
   parent=styles.listing;&lt;BR /&gt;
   style GraphDataText from GraphDataText /&lt;BR /&gt;
        fontsize=9pt;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Then, you can set STYLE=MYSTYLE on the ODS destination statement and you should see the size increase. Let me know if you have any problems.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Thu, 22 Apr 2010 21:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8476#M44</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-04-22T21:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8477#M45</link>
      <description>How do I combine mystyle with the style below:&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
	define style styles.rate;&lt;BR /&gt;
	parent=styles.analysis;&lt;BR /&gt;
	style graphcolors from graphcolors / &lt;BR /&gt;
	'gdata1'=MOYG&lt;BR /&gt;
	'gdata2'=STY&lt;BR /&gt;
	'gdata3'=BILG&lt;BR /&gt;
	'gdata4'=LILG&lt;BR /&gt;
	'gdata5'=VLIBG&lt;BR /&gt;
	'gdata6'=VIPK&lt;BR /&gt;
	'gdata7'=VIYPK&lt;BR /&gt;
	'gdata8'=LIRP;&lt;BR /&gt;
	'gdata9'=LIV;&lt;BR /&gt;
end;quit;</description>
      <pubDate>Thu, 22 Apr 2010 23:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8477#M45</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-04-22T23:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8478#M46</link>
      <description>Just add the GraphDataText to your style:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style styles.rate;&lt;BR /&gt;
   parent=styles.analysis;&lt;BR /&gt;
   style graphcolors from graphcolors / &lt;BR /&gt;
        'gdata1'=MOYG&lt;BR /&gt;
        'gdata2'=STY&lt;BR /&gt;
        'gdata3'=BILG&lt;BR /&gt;
        'gdata4'=LILG&lt;BR /&gt;
        'gdata5'=VLIBG&lt;BR /&gt;
        'gdata6'=VIPK&lt;BR /&gt;
        'gdata7'=VIYPK&lt;BR /&gt;
        'gdata8'=LIRP&lt;BR /&gt;
        'gdata9'=LIV;&lt;BR /&gt;
&lt;BR /&gt;
    style GraphDataText from GraphDataText /&lt;BR /&gt;
         fontsize = 9pt;&lt;BR /&gt;
end;&lt;BR /&gt;
quit; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 23 Apr 2010 03:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8478#M46</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-04-23T03:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8479#M47</link>
      <description>And, for the sake of those that might be wondering how to do this with traditional "proc gplot" ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot interpol=none pointlabel=("#name" height=1.5pct);&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot height*age=1;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 23 Apr 2010 12:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8479#M47</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-04-23T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8480#M48</link>
      <description>Hi, &lt;BR /&gt;
I tried this solution for a similar problem but it dosn't work for me.&lt;BR /&gt;
I would like to increase the resolution of my graph-output. Therefor, I increased width and hight in the ods graphics statement. Unfortunately the font size stayed at the same size.&lt;BR /&gt;
&lt;BR /&gt;
It would be nice, if someone could help my finding a way to get a bigger font size!&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!&lt;BR /&gt;
&lt;BR /&gt;
Gunter&lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
/*Plots der Verteilungen*/&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style styles.bigtext;&lt;BR /&gt;
parent=styles.listing;&lt;BR /&gt;
style GraphValueText from GraphValueText /&lt;BR /&gt;
  fontsize=20pt&lt;BR /&gt;
;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html gpath='H:\SAS\zw\bilder' style=bigtext ;&lt;BR /&gt;
ods graphics / reset=all width=1100px height=300px border=off style=bigtext;&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph sgscatter_gunter2;&lt;BR /&gt;
&lt;BR /&gt;
begingraph / includeMissingDiscrete=true;&lt;BR /&gt;
EntryTitle "" /;&lt;BR /&gt;
layout lattice / pad=(top=3) rowgutter=10 columngutter=10 columns=4 columnDataRange=data rowDataRange=union columndatarange=union  ;&lt;BR /&gt;
   ColumnAxes;&lt;BR /&gt;
   ColumnAxis / displaysecondary=none griddisplay=off offsetmin=0.05 offsetmax=0.05 linearopts=(viewmin=0 viewmax=20);&lt;BR /&gt;
   ColumnAxis / displaysecondary=none griddisplay=off offsetmin=0.05 offsetmax=0.05 linearopts=(viewmin=0 viewmax=10);&lt;BR /&gt;
   ColumnAxis / displaysecondary=none griddisplay=off offsetmin=0.05 offsetmax=0.05 linearopts=(viewmin=0 viewmax=10);&lt;BR /&gt;
   ColumnAxis / displaysecondary=none griddisplay=off offsetmin=0.05 offsetmax=0.05 linearopts=(viewmin=0 viewmax=140);&lt;BR /&gt;
   EndColumnAxes;&lt;BR /&gt;
&lt;BR /&gt;
   RowAxes;&lt;BR /&gt;
   EndRowAxes;&lt;BR /&gt;
   histogram diag2 /xvalues=midpoints binwidth=2 fillattrs=(color=lightgrey) ;&lt;BR /&gt;
   histogram anz2  / xvalues=midpoints binwidth=1 fillattrs=(color=lightgrey);&lt;BR /&gt;
   histogram xanz2 /xvalues=midpoints binwidth=1 fillattrs=(color=lightgrey);&lt;BR /&gt;
   histogram klasse2 /xvalues=midpoints binwidth=7 fillattrs=(color=lightgrey);&lt;BR /&gt;
endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sgrender data=lak1_geneuto3&lt;BR /&gt;
              template=sgscatter_gunter2;&lt;BR /&gt;
              label anz2='ANZ' klasse2='DS' diag2='DIAG' xanz2='ANZ14';&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 05 Apr 2011 10:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8480#M48</guid>
      <dc:creator>Gunter</dc:creator>
      <dc:date>2011-04-05T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot datalabel font-size</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8481#M49</link>
      <description>Hey Gunter,&lt;BR /&gt;
&lt;BR /&gt;
If the goal is to increase the graph resolution, use the IMAGE_DPI option on the ODS destination statement (for PRINTER or PDF, use the DPI option). If you are trying to do this with HTML output, I have found that browsers do not typically handle images higher than 100dpi very well. Let me know if this works out for you.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Thu, 07 Apr 2011 05:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-datalabel-font-size/m-p/8481#M49</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-04-07T05:18:25Z</dc:date>
    </item>
  </channel>
</rss>

