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

Hello all,

I recently saw a Sankey diagram generated from SAS VA. It looks cool and eye-catching.

I wonder if it can be created from the coding on SAS graph with 9.4 M5 that is version I currently have.

or would anyone who already generated SAS code like to share?

 

Thanks,

 

Ethan

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

Note:  The Blog article on "Sankey Diagram" that BallardW has referred to was only my attempt to show how some SGPLOT statements can be used to create a flow diagram.  In the figure, I was attempting to create a diagram a user wanted.  The coordinate points are very customized and will vary by your usage.  

 

There is no "Sankey" statement in SG that will take your data and produce a nice Sankey diagram like the one in VA.  However, we hope we can surface that code in a procedure in the future.

View solution in original post

4 REPLIES 4
ballardw
Super User

Google can be your friend.

 

The second result from "Sankey Diagram SAS" yields:

 

https://blogs.sas.com/content/graphicallyspeaking/2015/03/21/sankey-diagrams/

 

which has a text file you can download with an example data set and code that uses SGPLOT to make said diagram.

Jay54
Meteorite | Level 14

Note:  The Blog article on "Sankey Diagram" that BallardW has referred to was only my attempt to show how some SGPLOT statements can be used to create a flow diagram.  In the figure, I was attempting to create a diagram a user wanted.  The coordinate points are very customized and will vary by your usage.  

 

There is no "Sankey" statement in SG that will take your data and produce a nice Sankey diagram like the one in VA.  However, we hope we can surface that code in a procedure in the future.

t75wez1
Pyrite | Level 9
Appreciate the insights and hope "Sankey" option in SG from next SAS version.
danielagonzales
Fluorite | Level 6

Hello @Jay54 ! I was wondering if there has being an update to developing a Sankey chart using SAS Enterprise Guide or SAS Studio :). Thanks in advance for your response! FYI, I am part of a University and we have the Educational Analytics Suite in case that helps figuring out what environments I have access to ( I know that SAS Viya for Learners would not work given the restriction to upload my own data).

CFC_SAS_Communities_400x225.jpgCFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 11660 views
  • 4 likes
  • 4 in conversation