There are multple approaches depending on how you made the graph.
Generically you can get a bit more space for the text by 1) setting an offset so the bars occur a little distance from the margins and/or b) changing the font size for Axis text. Making the physical size of the graph might also work.
Most of the legend approaches have options for top/bottom/left/right and inside/outside of the graph area. Code for how you generated the graph would let us know the specific form. Ditto for the legend label.
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.