<?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: Can we able to fill the Marker symbols with Data values? Proc Template Procedure in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786849#M22454</link>
    <description>&lt;P&gt;Or, you can use&amp;nbsp; SCATTERPLOT option DATALABELPOSITION=CENTER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p08qhdljvzthmnn1vkbule00ad6r.htm#n0p8nam0wh029an19gvbz2x9rdd5b" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p08qhdljvzthmnn1vkbule00ad6r.htm#n0p8nam0wh029an19gvbz2x9rdd5b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 22:08:10 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2021-12-20T22:08:10Z</dc:date>
    <item>
      <title>Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786831#M22450</link>
      <description>&lt;P&gt;Can We able to fill the Marker symbols with data values in the scatter graph like in the&amp;nbsp; first image? any suggestions. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1640031237838.png" style="width: 282px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66906iF6066EEA80F9AEFE/image-dimensions/282x208?v=v2" width="282" height="208" role="button" title="SASuserlot_1-1640031237838.png" alt="SASuserlot_1-1640031237838.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_2-1640031294880.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66907iBAA14C97A115786D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_2-1640031294880.png" alt="SASuserlot_2-1640031294880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Example provided is sashelp.class dataset, there is a overlapping of data points. For our study specific graph there is no overlapping issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
	define statgraph xx;
		begingraph/BORDER=off;
		  layout lattice / ;
		 layout overlay /xaxisopts=(label=' ' linearopts =(tickvaluelist=(10 11 12 13 14 15 16 ) viewmin=10 viewmax=17 TICKVALUEFITPOLICY=THIN))
		    yaxisopts = (linearopts =(tickvaluelist=(50 55 60 65 70 ) viewmin=50 viewmax=70));
		    scatterplot x=age y=height  / 
		         markerattrs = (symbol=diamond size=20 color=maroon);
		       			
		    referenceline x=13;
		   annotate;
  		endlayout;
endlayout;
endgraph;
end;
run;

ods graphics on/ width= 9in height= 5.6in border=off   ;
ods html;
ods listing close; 
proc sgrender data=class template="xx";
run; 
ods _all_ close;
ods graphics off;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786831#M22450</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-12-20T20:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786835#M22451</link>
      <description>&lt;P&gt;Probably, but not sure there's an automated way to separate the overlaps easily.&lt;/P&gt;
&lt;P&gt;I would try just plotting the labels first and seeing how that looked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the steps you'd need to do:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Make sure the symbol is big enough to hold a font size that's legible for you.&lt;/LI&gt;
&lt;LI&gt;Think about overlaps and how you want to deal with them (likely manual jittering will be required)&lt;/LI&gt;
&lt;LI&gt;Use a TEXT statement or datalabel statement to plot your labels, you may need to tweak your X/Y position to get them centered.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786835#M22451</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-20T20:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786837#M22452</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; for your&amp;nbsp; response .&lt;/P&gt;
&lt;P&gt;Please read my comments for you Reponses.&lt;/P&gt;
&lt;P&gt;1. Yes I will make sure of the symbol size,&amp;nbsp; Mostly my data points are single digits so there will be no issue with the size.&lt;/P&gt;
&lt;P&gt;2. There is no overlapping issue in my data points.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Tried Data label option however it always displaying the values (labels) outside of the symbol. I am not sure&amp;nbsp; what you mean by tweaking. You expecting to create two graphs and overlap the labels with marker symbols?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786837#M22452</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-12-20T20:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786842#M22453</link>
      <description>Try the TEXT option instead. Datalabels are designed to be beside the symbol, whereas a TEXT statement lets you specify the coordinates.</description>
      <pubDate>Mon, 20 Dec 2021 21:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786842#M22453</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-20T21:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786849#M22454</link>
      <description>&lt;P&gt;Or, you can use&amp;nbsp; SCATTERPLOT option DATALABELPOSITION=CENTER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p08qhdljvzthmnn1vkbule00ad6r.htm#n0p8nam0wh029an19gvbz2x9rdd5b" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p08qhdljvzthmnn1vkbule00ad6r.htm#n0p8nam0wh029an19gvbz2x9rdd5b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786849#M22454</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2021-12-20T22:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786857#M22455</link>
      <description>That's a better solution IMO! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786857#M22455</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-20T22:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can we able to fill the Marker symbols with Data values? Proc Template Procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786872#M22456</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&amp;nbsp;. It worked for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; for your valuable suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 23:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Can-we-able-to-fill-the-Marker-symbols-with-Data-values-Proc/m-p/786872#M22456</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-12-20T23:36:54Z</dc:date>
    </item>
  </channel>
</rss>

