Desktop productivity for business analysts and programmers

Add sexondary y-axis to a bar chart

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 7
Accepted Solution

Add sexondary y-axis to a bar chart

I am trying to add a secondary y-axis to a bar chart. I am using the wizard as shown in this SAS tutorial:

https://www.youtube.com/watch?v=-hC84zU9lFA

 

They don't mention secondary axes at all.

 

So, how do I do it?

In this SAS Enterprise Guide video tip presented by SAS instructor Stacey Syphus, learn how to create a summarized bar chart using the Bar Chart Wizard.

Accepted Solutions
Solution
‎01-13-2017 06:57 AM
SAS Employee
Posts: 93

Re: Add sexondary y-axis to a bar chart

Hi  Andreas,

 

It is possible to create a bar chart with a second vertical axis.

But tasks coming with SAS Enterprise Guide won't give you access to all options available with the procedure, GCHART in your case.

So you'll have to use a program node and write the code.

Sample 41975 (Annotate a right vertical axis on PROC GCHART output) will show you how to do it.

 

If you're looking for SAS/GRAPH samples, etc. I would recommend you Robert Allison's page and the Graphics Samples Output Gallery

 

Cheers,

Damo

View solution in original post


All Replies
Solution
‎01-13-2017 06:57 AM
SAS Employee
Posts: 93

Re: Add sexondary y-axis to a bar chart

Hi  Andreas,

 

It is possible to create a bar chart with a second vertical axis.

But tasks coming with SAS Enterprise Guide won't give you access to all options available with the procedure, GCHART in your case.

So you'll have to use a program node and write the code.

Sample 41975 (Annotate a right vertical axis on PROC GCHART output) will show you how to do it.

 

If you're looking for SAS/GRAPH samples, etc. I would recommend you Robert Allison's page and the Graphics Samples Output Gallery

 

Cheers,

Damo

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 162 views
  • 0 likes
  • 2 in conversation