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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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