I need to make a simple bar graph that looks like this:
|order (num)||var2 (char)||var3 (char)||var4 (num)|
|2||No Symptoms||visit 20||50|
|2||Symptoms 2||visit 20||30|
|4||No Symptoms||visit 20||50|
|4||Symptoms 2||visit 20||30|
Since the example "data" has nothing that appears in the example picture you have to walk us through the role of each variable and how it is supposed to be used in the graph. Especially what your Var4 represents. You show an example graph where bar height represents percentages. If the value of Var4 is a percentage then 244 is an odd value, not impossible but appears odd.
I believe you have been on this forum long enough to know that example data should be in form of working data step code so we don't have to make guesses about actual variable names and types.
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.