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

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;

Picture1.png

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
You should ask Tech Support this question.

View solution in original post

5 REPLIES 5
Reeza
Super User
You should ask Tech Support this question.
DanH_sas
SAS Super FREQ

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

ebowen
Quartz | Level 8

Unfortunately, that didn't work. It still has the bar across the top. But thanks for the suggestion!

DanH_sas
SAS Super FREQ

I agree with @Reeza . I would call Technical Support and report the issue.

ebowen
Quartz | Level 8
Sounds good. Thanks!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 5 replies
  • 1289 views
  • 0 likes
  • 3 in conversation