How to colorize the complex Labels using field’s data.
1) Add layers to ArcMap
2) Go to the Layer properties,
select ‘Labels’ tab.
3) Click on the expression button.
4) Click/Select ‘Advanced’ expression
option to write the label advanced expression.
Expression:
‘Function
FindLabel (“select the Fields which you want to show as labels”)
Function
FindLabel ([Green], [Red], [Blue])
‘FindLabel
= ‘write the expression to colorize the labels as below’
FindLabel = "<CLR BLUE = '255' >" & [Blue] &
"</CLR>" & vbNewline & "<CLR GREEN = '255'
>" & [Green] & "</CLR>" & vbnewline
& "<CLR RED = '255' >"& [Red]
&"</CLR>"
End
Function
Acceptable values for
Color (RGB) are red, green, blue = 0–255, and acceptable values for Color
(CMYK) are cyan, magenta, yellow, black = 0–100; missing color attributes are
assumed to be 0.
No comments:
Post a Comment