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 2024

Innovate_SAS_Blue.png

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. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 672 views
  • 0 likes
  • 3 in conversation