There's more than one way to "skin" a polygon with ODS Graphics. 🙂
Using the label and labelattrs options to display the state labels eliminates the need for a TEXTPLOT statement:
proc template;
define statgraph ustemplate;
begingraph;
entrytitle "Per Pupil Public Elementary/HS Spending By State (2013)";
layout overlayequated / border=false xaxisopts=(display=none) yaxisopts=(display=none);
polygonplot id=id x=x y=y /
colorresponse=percapitaspend colormodel=(red blue green)
dataskin=matte name="spend" display=(FILL)
labelattrs=(color=white size=10pt weight=bold) label=statecode;
continuouslegend "spend";
endlayout;
endgraph;
end;
run;
proc sgrender data=statespend template=ustemplate;
run;
... View more