07-13-2011 07:25 AM
my customer wants me to create a grouped bar graph where the is a line from one bar to the other from the top value of each group to the top value of the corresponding group of the next bar.
Does SAS offer this kind of graph?
The customer wants even a second bar graph which is also grouped but where the groups are not stacked but displayed next to each other and with a line betwwen each and a value on the line which indicates the value of the group.
07-18-2011 05:16 PM
This will get much easier in SAS 9.3, but in the meantime you can use GTL to create any combination of bar and line you need. If your data is organized in columns like shown in the sas program (attached), then the GTL code will allow you to create the adjascent grouped bars with overlaid lines as shown.
08-25-2011 01:19 PM
When you say "grouped bar chart", I assume you're talking about bars with several different-colored segments stacked on top of each other?
Using traditional SAS/Graph, proc gbarline might do what you're wanting (assuming you have a fairly recent version, such as 9.2m3). Or, if gbarline doesn't provide what you're needing, you could annotate a line on top of a proc gchart bar chart.
Here are some various examples you might find useful:
and a few more fancy examples...