Hi i can't not see the description for my legend all i see is the assign number can some one help me.
here is the code.
/* -------------------------------------------------------------------
Code generated by SAS Task
Generated on: Thursday, May 4, 2017 at 1:08:28 PM
By task: Map Chart
Map Data: SASApp:MAPSGFK.US_COUNTIES Response Data: SASApp:WORK.ADDCOUNTYID Server: SASApp
------------------------------------------------------------------- */
%_eg_conditional_dropds(WORK.MAPCHARTMAPPREP);
PROC SQL;
CREATE VIEW WORK.MAPCHARTMAPPREP AS
SELECT *
FROM MAPSGFK.US_COUNTIES
WHERE STATECODE = 'NC'
;
QUIT;
%_eg_conditional_dropds(WORK.MAPCHARTRESPONSEPREP);
PROC SQL;
CREATE VIEW WORK.MAPCHARTRESPONSEPREP AS
SELECT *
FROM WORK.deviations_by_county
;
QUIT;
GOPTIONS RESET=ALL DEVICE=html5; /* Modified by Ahsan */
PATTERN1 VALUE=SOLID COLOR=CX99CC00;
PATTERN2 VALUE=SOLID COLOR=WHITE;
PATTERN3 VALUE=SOLID COLOR=YELLOW;
PATTERN4 VALUE=SOLID COLOR=CXFF6600;
PATTERN5 VALUE=SOLID COLOR=RED;
LEGEND1
DOWN=5
FRAME
LABEL=( FONT='Times New Roman' HEIGHT=14pt JUSTIFY=LEFT "Light green counties have unusually LOW per enrollee spending. "
FONT='Times New Roman' HEIGHT=14pt JUSTIFY=LEFT "White counties have spending per enrollee that is within plus or minus one standard deviation from the mean. "
FONT='Times New Roman' HEIGHT=14pt JUSTIFY=LEFT "Yellow, orange, and red counties have unusually HIGH per enrollee spending.")
;
TITLE;FOOTNOTE;
TITLE1 "NEMT Per Medicaid Enrollee Spend by County";
TITLE2 "Standard Deviations Above or Below Average";
FOOTNOTE1 "";
ods _ALL_ close; /* Modified by SAS */
ods html5 path='/sas/RA/nc_dhhs/OIA/ContinuousAudit/ContinuousAuditShared/CommonResources/ExampleMapProject' (url=none)
file='test.htm' (title="NEMT spending by county") style=htmlblue
options(bitmap_mode='inline'); /* Modified by SAS */
PROC GMAP GOUT=MAPCHART DATA=WORK.MAPCHARTRESPONSEPREP MAP=WORK.MAPCHARTMAPPREP ALL;
ID STATE COUNTY;
choro Deviations /
WOUTLINE=1
CDEFAULT=BLACK
DISCRETE
LEGEND=LEGEND5 html=tooltip
;
RUN;
QUIT;
TITLE;FOOTNOTE;
GOPTIONS RESET=LEGEND5;
GOPTIONS RESET=PATTERN;
GOPTIONS CBACK=;
ODS _ALL_ CLOSE;
%_eg_conditional_dropds(WORK.MAPCHARTRESPONSEPREP);
%_eg_conditional_dropds(WORK.MAPCHARTMAPPREP);
/* -------------------------------------------------------------------
End of task code
------------------------------------------------------------------- */
@Ahsan wrote:
When modified the code i got this warning
WARNING: Font Times New Roman could not be used.
Font Albany AMT substituted for font Times New Roman.
WARNING: There is not enough room for even one legend entry and the label.
WARNING: The legend has been suppressed.
Please help.
Reduce your font sizes and the amount of label text, make sure to use your defined legend Legend = Legend1, and you may want to specify a location for your legend.
When modified the code i got this warning
WARNING: Font Times New Roman could not be used.
Font Albany AMT substituted for font Times New Roman.
WARNING: There is not enough room for even one legend entry and the label.
WARNING: The legend has been suppressed.
Please help.
@Ahsan wrote:
When modified the code i got this warning
WARNING: Font Times New Roman could not be used.
Font Albany AMT substituted for font Times New Roman.
WARNING: There is not enough room for even one legend entry and the label.
WARNING: The legend has been suppressed.
Please help.
Reduce your font sizes and the amount of label text, make sure to use your defined legend Legend = Legend1, and you may want to specify a location for your legend.
This message may explain part of why you can't see the legend:
WARNING: Legend statement 5 could not be found. The default legend description will be used.
NOTE: Foreground color WHITE same as background. Part of your graph might not be visible.
85 QUIT;
Your code defines a legend1 but you used legend5 in the code.
A similar warning about using the incorrect image device is another potential troublemaker
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.