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;
I'm not sure why that is happening; but try adding the following to see if it goes away:
x2axis display=none;
Let me know what you get.
Thanks!
Dan
Unfortunately, that didn't work. It still has the bar across the top. But thanks for the suggestion!
I agree with @Reeza . I would call Technical Support and report the issue.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.