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

Hi,

 

I am making a lattice of pie charts with responses from four surveys.  The legend for each of the four surveys is the same, so I have added a legend to the bottom chart in the lattice.

 

Because the bottom chart in the lattice contains the legend, the chart area is smaller in that chart than the other three.

 

How can I make the chart that contains the legend be the same size as the charts that do not contain a legend?

 

Thanks!

 

proc template;

define statgraph piechart;

dynamic _skin;

begingraph;

entrytitle '';

layout lattice / columns=1 rows = 4 rowweights = (.8 .8 .8 1);

layout region;

piechart category=ec response = percent_of_total_study1 / dataskin=_skin datalabelcontent= none otherslice = false;

endlayout;

layout region;

piechart category=ec response = percent_of_total_study2 / dataskin=_skin datalabelcontent= none otherslice = false;

endlayout;

layout region;

piechart category=ec response = percent_of_total_study3 / dataskin=_skin datalabelcontent=none otherslice = false;

endlayout;

layout region;

piechart category=ec response = percent_of_total_study4 / name = "ec" dataskin=_skin datalabelcontent= none otherslice = false;

discretelegend "ec" / location = outside /*Title = "Category"*/ valueattrs = (size = 12pt);

endlayout;

endlayout;

endgraph;

end;

run;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

If it fits you might try location=inside to share space.

View solution in original post

1 REPLY 1
ballardw
Super User

If it fits you might try location=inside to share space.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 895 views
  • 0 likes
  • 2 in conversation