hi,
when using "grouped colored vertical bar" chart there is no possibility to check the legend option like in other graphs.
(however it can be done in the html output, but when you re-create the graph the legend is gone).
Can somebody give me a coded example to I can do it hard coded ?
Even this works not with me 😞
Gr,
Herman
Hi @Jaheuk
You can use a VBAR statement in PROC SGPLOT to create this kind of graph.
Hereafter is a blog post with meaningful examples on how to use efficiently options such as groupdisplay=cluster or stack depending on what you want.
Then, this material presents how to get customized legends, and especially how to make the most of the KEYLEGEND statement:
https://blogs.sas.com/content/iml/2018/12/03/tips-customize-legends-proc-sgplot.html
Please do not hesitate to share some sample datalines so that we can help you build the desired graph output.
Hope this helps,
Best,
Hi @Jaheuk
You can use a VBAR statement in PROC SGPLOT to create this kind of graph.
Hereafter is a blog post with meaningful examples on how to use efficiently options such as groupdisplay=cluster or stack depending on what you want.
Then, this material presents how to get customized legends, and especially how to make the most of the KEYLEGEND statement:
https://blogs.sas.com/content/iml/2018/12/03/tips-customize-legends-proc-sgplot.html
Please do not hesitate to share some sample datalines so that we can help you build the desired graph output.
Hope this helps,
Best,
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.