You can create custom labels for a map legend to control the contents of the legend list.
To create a label based on a value derived from your table, you use an expression containing string functions to fine tune your labels. For an overview of how to work with and formulate expressions, see Creating Expressions.
To create customized labels for a legend frame:
- Choose Add Legend from the MAP tab or LEGEND tab.
- In the Create Legend Choose Layers screen, make your settings and proceed through to the Frame Properties screen.
- In the Create Legend Frame Properties screen, from the Label styles with drop-down list, select Expression.
- In the Expression dialog box, type the expression you want to create or use the drop-down lists. (An example follows these instructions.)
Put quotation marks around text in a label expression. For multiline labels, use CHR$(10) to reference several columns of text.
The results of the expression are the labels for your legend symbols. Note that an expression can be multi-line.
Example: Your thematic map shows countries categorization by malaria control status. You want to create a map legend listing countries in the Pacific by name and population. You must first select the countries located in the Pacific and then create the map legend. In Step 1 of the Create Legend wizard, choose your map selection as the map layer to display in the legend. In Step 3, select to use an Expression from the Label styles with drop down list. You then create the expression:
Country + " (" + Str$(Population) + ")"
Where Country is the column containing country names, Str$(Population) converts the values in the Population column to strings for display, which will display in brackets "(" and ")". The resulting labels in the legend frame list will look like this:
Papua New Guinea (6858266)
Solomon Islands (538148)
Vanuatu (239651)
See Also: