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).

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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