Data visualization with SAS programming

Side by side / stacked bar and lines

Reply
New Contributor
Posts: 2

Side by side / stacked bar and lines

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

SAS Employee
Posts: 980

Re: Side by side / stacked bar and lines

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

Ask a Question
Discussion stats
  • 1 reply
  • 490 views
  • 0 likes
  • 2 in conversation