Display symbol label with multiple lines in legend
December 22 2009 |
8 comments
Categories:
Map Elements
I would like to display a symbol label on two lines in the legend for a layer that is sybolized using unique values. I would like both lines of the label to be centered horizontally with the label.
Mapping Center Answer:
To make legend labels display on two lines, you need to add a description to the legend items. This is done by right clicking in the lend item on the Symbology tab of the Layer Properties dialog. Select Edit Description… and here you can type in the label name (or paste copied text) and then add a carriage return (by clicking Control + Enter) to split the label so it shows on two lines.
To have the description show up in the legend instead of the label, in the legend properties, on the Items tab, right click the name of the layer in the Legend Items pane and click Properties. Here there are a number of options that relate to labels and descriptions, but at the least on the General tab you can choose to show the descriptions and not the labels for the legend items.
You can find some related documentation here:
- http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=17447
- http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow&d=17448
The first article describes how to create a description and the second article describes how to display the description in a legend.
You can either create a "dummy" symbol in layer properties/Symbology at the top of the list (make the symbol invisibly by sizing to 0, or making no colour). Then make the label what you would have wanted in the second line of the symbol Header. Alternatively you could make the default
OR, you could group some of the symbols by making several headers. Select -> right-click -> Move to Header. That will add some detail to your legend, and may be useful in some cases.
See the Legend Properties dialog > Layout tab. There is a section in the bottom left there that lets you specify some settings for text wrapping. Basically you can set maximum widths and text that is longer than that will automatically wrap. More info on legends in 10.1 at http://resources.arcgis.com/en/help/main/10.1/index.html#//00s900000023000000
To wrap legend titles, do it the same as you always could, by editing the title and inserting carriage returns in the dialog.
The headings are included along with the legend labels when you set the label and/or description wrapping.
If you would like to post a comment, please login.