BookmarkSubscribeRSS Feed
Elliott
Obsidian | Level 7

I am trying to create a chart that has one part represented by a interleave vertical bar chart and another set of data being displayed in a line graph.  I was told by one of my SAS instructors there was a way to overlay the 2 to create one chart.  I have attached screen shots of the individual charts I have created using SAS Enterprise Guide 7.1.  The 2 charts at the top are the SAS charts and the bottom is the manual chart I am currently creating in Excel.  I need to get SAS to combine the 2 top charts so that they look like the the manual excel chart.  Also, in the interleave vertical bar chart, I was not able to get the data number represented by the bars to display.  How do I do that?

Thanks in advance.

Elliott

2 REPLIES 2
Kalind_Patel
Lapis Lazuli | Level 10

Hi @Elliott;

 

Have you tried PROC GPLOT to overlay two charts ?

using PROC GPLOT you can overlay line chart and bar chart in single chart,

 

This is the sample code & example for this:

http://support.sas.com/kb/24/908.html

Elliott
Obsidian | Level 7

Hi,

This does not seem to be working for me.  The bar chart I created using a task that I provided a screen shot of I used the interleave vertical bar chart to get both bars values.  I tried to use your example and combine the code for the line plot and vertical bar chart but it is not working.  getting this to work would really eliminate a day's worth of work manually created charts for a presentation.  What else can I provide to get assistance with created the chart like I provided in the document I attached in my original post.

 

Thanks,

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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