1.167 FAQ-829 How can I right-align legend text or arrange the graph legend horizontally?

Last Update: 6/2/2023

To right-align legend text:

By default, legend text is left-aligned. To right-align legend text,

  • Set system variable @MCLA = 1. See this FAQ of how to change a system variable value.
  • Select the legend object, Click the Alignment button Button Align Left.png on the Format toolbar and choose Right (or Center to center text).
  • Click on the legend object, right-click and choose Properties. On the Text tab of Text Object dialog, make your selection from the Alignment drop-down list.
Object Properties Align Dropdown.png

For those seeking a greater degree of control over legend alignment, see Legend Element Alignment.

To arrange the legend horizontally:

  1. Select the legend in order to show up the legend border.
  2. Press CTRL and drag to re-arrange the legend.
How to change the alignment of text inside a legend into right 2.png

To align the legend in a table view

Legend table view.png

We can add cell anchor \^() to put object on the right side of the anchor in a cell. For more details, please refer to the FAQ-1168 How to Align Symbols in Legend?
Legend alignment table1.gif

Keywords:Legend, Alignment, right-aligned, horizontal, legend text