BookmarkSubscribeRSS Feed
Relax
Fluorite | Level 6

Hi all,

 

I have three questions about the layout datalattice:

1) As you can see in the image attached below, I wanted to show the bar labels in the plot, but they are overlapped.  So I want to rotate the percentage values to the vertical direction.  How to do it?

2) How to adjust the width of a single panel automatically?  For example, the width of the panel becomes thin if there is only one bar, and the width of the panel becomes wide if there are more bars.

3) Since my x-axis tick values are texts (which are not time values) and I don't want to assign them a short label, so how to split the text tick values?

 

I appreciate everyone's help!

 

 

Capture_0403.PNG

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

Did you use SAS code to generate this plot or SAS Visual Analytics? 

 

If you used VA, you are probably better off posting the question in the SAS Visual Analytics Forum 🙂

Relax
Fluorite | Level 6

Hi draycut, sorry for being late to reply.  I use SAS Enterprise Guide to generate this plot.

DanH_sas
SAS Super FREQ

1) Are ou using BARCHART or BARCHARTPARM?

 

2) Try using COLUMNWEIGHT=PROPORTIONAL on the LAYOUT DATALATTICE statement.

 

3) Try using columnaxisopts=(discreteopts=(tickvaluefitpolicy=split))

Relax
Fluorite | Level 6

Hi Dan, thanks for your reply.  I am using BARCHART to generate this plot.  Your answers to my second and third questions work well.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 777 views
  • 0 likes
  • 3 in conversation