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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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
  • 573 views
  • 0 likes
  • 2 in conversation