I am developing a gauge report that needs to include the actual value as well as the formatted category value of the measure. I would like to have the actual value presented in the label below the measure label and the formatted value below the gauge. I have tried to embed ^[newline] escape characters in the label option, but that doesn't seem to work.
code:
ods escapechar="^";
proc gkpi mode=basic;
speedometer actual=&ComCases. bounds=(0 1 5 15 25 35)
/ type=half
colors=(cx0000ff cx008000 cxFFFF00 cxFFA500 cxFF0000)
lfont=(f="Albany AMT" height=1cm)
label="COVID in the Community ^{newline 2} &ComCases."
name="community"
format="ComLev."
afont=(height=.5cm);
run;
You might try Title statements instead of label.
title "COVID in the Community"; title2 "&ComCases.";
or other title numbers if you already have one. This would also allow the use of the TITLE appearance options.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.