I'm using SGPLOT to output some horizontal bar charts to scalable vector graphics (SVG) images. But I'm having a weird problem with the output. I have a broken axis, but for some reason the axis break on the top (but not the bottom) has a line through the middle of it where the normal axis would be. This seems to only affect the SVG version of the file, as it doesn't appear if I change the output to a png. Code and image below.
proc sgplot data=bar_base NOAUTOLEGEND sganno=anno pad=(top=12 bottom=0 left=0 right=0); styleattrs DATACOLORS=(cxEAAA00 cx002855) AXISBREAK=bracket; hbar ClusterName / response=Employment_R_17 group=group_employ nooutline barwidth=0.75; xaxis type=linear DISPLAY=(NOLABEL) ranges=(0-2500 4000-4700) VALUEATTRS=(Family=Calibri Size=7) VALUES=(0 to 4500 by 500) fitpolicy=rotate VALUESROTATE=DIAGONAL2 valuesformat=best8.; yaxis DISPLAY=(NOLABEL) type=discrete fitpolicy=none discreteorder=data VALUEATTRS=(Family=Calibri Size=7); where Employment_R_17 > 0; run;
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.