BookmarkSubscribeRSS Feed
tony146
Calcite | Level 5

Hoping someone can point me in the right direction for this.  I haven't been working with SAS for very long and have been using mostly SAS 8.2 TS2M0 and we also have SAS 9.2 TS2M0.  I'm trying to create the chart below in SAS.  I can't see to find how to create a side by side bar chart in SAS 9.2 TS2M0, I have it working for another program in SAS 8.2 using gchart and greplay, but like the looks of using GTL in SAS 9.2.

Any idea where I should start in either SAS 8.2 or 9.2?  Remember it's the TS2M0 version.

THANKS in advance!!

  Tony

1 REPLY 1
GraphGuy
Meteorite | Level 14

Here's another alternative (maybe simpler than using greplay) using Proc Gchart to create the grouped/stacked bars, and annotate to draw the line & right-axis values.

Grouped Bar Chart with Line (Custom SAS/Graph gchart, not gbarline)

http://robslink.com/SAS/democd29/barline_info.htm

(this particular data doesn't show 'stacked' bar segments, but gchart's subgroup= option does support that).

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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