BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
srinivaschary
Calcite | Level 5

Hi

Could you please help me quickly while am building dual axis bar chart...trend line showing at bottom, not trend pls help

 

Data 

ProductGRO-PremSA%
A20561000004%
B795010000016%
C44501000009%
D85255000017%
E884910000018%

 

in SAS:

In SAS.PNG

Expected:

 

Expected result.png

 

 

Srinivas

1 ACCEPTED SOLUTION

Accepted Solutions
ShivamKS
Obsidian | Level 7

Hi

 

In your custom bar line chart, change the axis of the line chart to Right Y-axis and ensure to edit the role of the bar chart to have "Allow multilple Data assignement" selected.

 

Line Chart: On Properties Tab of custom chart

 

Line Chart mod.PNG 

 

Bar Chart: On Roles Tab of Custom Chart

 

bar chart mod 1.PNGbar chart mod 2.PNG

 

The final assignement of roles on the custom chart:

 

final roles.PNG

 

Will give you the required result:

 

Final chart.PNG

View solution in original post

3 REPLIES 3
Lodewijk
Obsidian | Level 7

You have to make sure that GRO-prem and SA both share the left-hand y-axis, and the %-age measure needs to use the right-hand y-axis. Right now GRO-prem and SA define the axes, and that pushes the percentage line to the bottom.

srinivaschary
Calcite | Level 5

Thanks for reply, Am trying to the same way but % should come line chart. Gro-Pre and SA should come bar charts,

 

 

Thanks,
Srinivas

ShivamKS
Obsidian | Level 7

Hi

 

In your custom bar line chart, change the axis of the line chart to Right Y-axis and ensure to edit the role of the bar chart to have "Allow multilple Data assignement" selected.

 

Line Chart: On Properties Tab of custom chart

 

Line Chart mod.PNG 

 

Bar Chart: On Roles Tab of Custom Chart

 

bar chart mod 1.PNGbar chart mod 2.PNG

 

The final assignement of roles on the custom chart:

 

final roles.PNG

 

Will give you the required result:

 

Final chart.PNG

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 4621 views
  • 0 likes
  • 3 in conversation