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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4504 views
  • 0 likes
  • 3 in conversation