BookmarkSubscribeRSS Feed
helannivas88
Obsidian | Level 7

Hi,

 

I have a SAS work table where I'm generating a stacked bar graph out of that. For the graph, X axis will be date value. Also the stack will be a character value and sum will be the numeric value.

 

Actually in the sas table, I have around 10 date values but in the graph I'm getting only 7 bars and also the date ( X axis) is not exactly the same as in SAS table.

 

Not able to differentiate which bar belongs to which date? I'm using SAS EG 7.13 directly for generating the  bar, not writing any sas code.

 

Kindly advice to overcome this issue.

 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

You need to add the discrete option. You can modify the code even if you used the wizard to create it. I have no idea is this option is available via the wizard.

SAS Innovate 2025: Register Now

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!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 367 views
  • 0 likes
  • 2 in conversation