Select to view content in your preferred language

Dynamic text for symbology labels

232
3
09-09-2024 12:05 PM
Status: Open
Labels (1)
JeffThomasILM
Frequent Contributor

Pro needs the ability to display dynamic text for symbology labels, which will then appear in the legend. That is, it should be able to symbolize map features based on one attribute, then display a different attribute in the legend. The reason I can't just symbolize on the attribute I want labeled is because it's subject to change, but I don't want the symbology to change. 

Here's an example use:

I have a layer showing zones for enforcement officers. The zones are symbolized on a field with values 1, 2, 3, 4. But I want the officers' names displayed in the legend, which are stored in another field. The names of the officers occasionally change, so I can't symbolize on them without having to fix the map. Zones 1, 2, 3, 4 never change and can be reliably symbolized upon, but I have to manually update the names in the labels. I wouldn't have to if I could put dynamic text in the symbology label specifying the name field! Like this:

JeffThomasILM_0-1725908516159.png

3 Comments
RoseF
by

Agreed! If we could choose a field upon which to sort and the field from which the label and description should come from, it would save us hours and hours of work.

JesseWickizer

This isn't exactly what you want, but as an alternative you could use table attribute dynamic text elements placed next to each legend item to label the region colors. Each dynamic table attribute could use a custom query to only show text for 1 zone, and for the text choose the Name field that regularly changes.

JesseWickizer_0-1725979273427.png JesseWickizer_1-1725979306706.png

JesseWickizer_2-1725979321022.png

Insert a legend for the zones layer but turn off the Label (or layer name) so labels don't draw.

JesseWickizer_3-1725979435191.png  JesseWickizer_4-1725979466894.png

Move the dynamic text boxes next to each zone color in the legend.

JesseWickizer_5-1725979679966.png

Now when you change the Name field values, the map and custom legend update accordingly.

JesseWickizer_7-1725980161210.png

JeffThomasILM

@JesseWickizer That is a good workaround, thanks! That is essentially what I want built into the symbology labeling itself. But it would also have to deal with the potential for non-unique values for symbology that return multiple associated field values: first, last, count, concatenate, etc. ArcGIS already has this functionality for other geoprocessing tasks so it wouldn't have to be created from scratch, but it's worth asking at some point if the usefulness justifies the complexity. It all depends on demand!