am tring to use color grading shades for the map I created but it's not showing any results. Am not sure if I have missing anything in my code. I will appreciate any help
proc template; define style styles.grad1; parent=styles.listing; style threecolorramp /startcolor=cream endcolor=darkblue; end; run; proc gmap data=mydata map=mapsgfk.germany all; id id; choro cases / statistic=first discrete levels=4 coutline=gray anno=myanno cdefault=CXFFFFFF legend=legend1; run; quit;
I suppose you saw this.
I think you forgot to call the style.
@GraphGuy This is the code I used but unfortunately no changes. Attached is my data
legend1 label =(position=top j=c h=10pt "Number of cases" ) value=(f="Arial" h=8pt c=black justify=left) origin=(78,18) across=1 position= (right middle) offset=(0.5) space=1 mode=reserve shape= bar(.17in,.13in )/*width and height*/ ; proc template; define style styles.grad1; parent=styles.listing; style twocolorramp /startcolor=cream endcolor=darkblue; end; run; ods listing style=styles.grad1; ods html style=styles.grad1; proc gmap data=mydata map=mydata all; id id; choro cases/ statistic=first discrete levels=4 coutline=gray anno=myanno cdefault=CXFFFFFF legend=legend1; run; quit;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.