HOW TO
In ArcGIS Pro, multiline labels with concatenated text (string) can be configured to display different colored text using the ArcGIS Arcade text formatting tags. In this article's example, the Schools_all layer contains information on education institutions in Portland such as names, types, and ZIP Codes of the school, as shown below.
This article describes the steps to apply different colored text labels displaying the NAME, LEVEL, and ZIPCODE field values using the Labeling syntax <CLR></CLR>.
'<text1>' + $feature.<fieldName1> + Textformatting.NewLine + "<CLR <colorName> = '255'>" + '<text2>' + $feature.<fieldName2> + "</CLR>" + Textformatting.NewLine + "<CLR <colorName> = '255'>" + '<text3>' + $feature.<fieldName3> + "</CLR>"
'Name: ' + $feature.NAME + Textformatting.NewLine + "<CLR red = '255'>" + 'Type: ' + $feature.LEVEL + "</CLR>" + Textformatting.NewLine + "<CLR blue = '255'>" + 'ZIP Code: ' + $feature.ZIPCODE + "</CLR>"
The map below displays the distribution of education institutions in Portland, labeled with their respective names, types, and ZIP Codes in different colored text.
Get help from ArcGIS experts
Download the Esri Support App