Hello,
In ODS graphics, does anyone know a visual trick to make text more visible over a patterned background such as a map or a set of bars? One thing I already tried was to superimpose dark text in a normal font over the same text in white bold, but the characters didnt align properly.
PG
In traditional SAS Graph the option was usually CBACK (= white) with text displays such as annotate or data label options. I haven't tried to annotate any ODS graphics yet so I'm not sure if that works.
It looks like the style element involved is GraphDataText but it seems to only have a COLOR attribute, not a background color in the online help. I'd try specifing a CONTRASTCOLOR with that element to see if that worked but just a gues.
If you have SAS 9.3, the DRAWTEXT statement in GTL or the SG annotation facility in the SG procedures do support background color for text. Therefore, your annotation suggestion should work fine.
Hi Dan,
I don't see how I could get lettering such as "Woodland Acres" on this picture :
overprinting normal and bold text doesn't work because the spacing between letters is not the same.
PG
In traditional SAS/Graph, I have accomplished a similar (although not perfect) text effect by annotating overlapping swissb and swissbe SAS/Graph software font letters:
Your map example looks like you might want an OUTLINE font.
Well, I need two fonts with exactly the same metrics; I would write with the heavier one first and overwrite with the thinner one. I thought someone might know of such a pair. So far, came up the closest to my wish, but with all due respect, I don't feel like going bach to the '80s vector fonts.
Unless you can apply a FILL color to an outline font?
PG
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.