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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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