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-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

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