BookmarkSubscribeRSS Feed
LorenaPalacios
Calcite | Level 5

 

Hello.

 
I need to create a graph with "only some columns" stacked and others not.
In the image the example goes, the distribution of data must be in this way and only the first three columns must be stacked on an axis.
 
I have not found examples that can solve this problem.
Any suggestions? I am very complicated if I can not present the information in this way.
 
Thanks!!!

 

Capturaparasas.JPG

 

 
 
4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

I am afraid your post is a bit unclear.  If you want to graph some data in a different way, then you need to have multiple graphs for each block and overlay them.  So your "only some columns" would be one graph, then the other columns would be another graph.  You have't presented any usable data (see: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat...), or your code, so can't say directly. 

You will find many examples at:

https://blogs.sas.com/content/graphicallyspeaking/

LorenaPalacios
Calcite | Level 5

I'm sorry if I have not been clear.

The graph that I presented in the example is only one with some columns stacked and others not.

This is resolved in Excel where I can choose which columns to stack.

You tell me then that in a single graphic it would not be possible?

Thank you very much for the reply

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Yes, you can plot and overplot many graphs to the same graph output.  Here is one post on that site showing a line plot over a bar chart:

https://blogs.sas.com/content/graphicallyspeaking/2018/02/05/dual-response-axis-bar-line-overlay-par...

 

LorenaPalacios
Calcite | Level 5
 
 I need to create a bar chart where I can add three completely different variables. It is not a group since one variable has to be presented in another axis with different scale.
 

How can I graph bars that are different column of data? When I do it, it superimposes the bars. I just need to see it as shown in the example. I appreciate any help
GraficoBarras.JPG

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 766 views
  • 0 likes
  • 2 in conversation