Hi SAS Experts,
I want to get rid of the Final bar in waterfall chart is there is any way to do this, below is my code.
input name$ marks;
proc sgplot data=a;
waterfall category=name response=marks/colorgroup=name datalabel dataskin=none finalbarattrs=(color=CXF6B333);
/* keylegend / location=outside down=3 opaque;*/
xaxis display=(nolabel) discreteorder=data;
yaxis offsetmin=0 ;
There is an option in GTL waterfall chart to turn off the final bar; but, unfortunately, we do not currently have it in SGPLOT. However, you can use the TMPLOUT option on the SGPLOT procedure statement to dump out the GTL template. Then, on the WATERFALLCHART statement after the "/", add this option:
display=(fill outline connect)
Run this template with PROC SGRENDER. This should give you your current appearance, minus the final bar.
Hope this helps!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.