I am creating a map and I am having difficulty scaling the labels based on population data. The population data is contained within the same shapefile as the names of the municipalities. Is this something that is possible to do using Arcade. Python, or any of the other languages or not something that is possible to do?
Solved! Go to Solution.
Here is an option in VBScript (also works in ArcGIS Pro > Layer Labeling Properties)
Unlike the example in the above link, I didn't create new fields for the purpose, but did the calculation in the expression itself.
In the above example, 100000 is the factor divided by which my value field would result in values ranging from 6 to 18 (approx.). You could choose the factor that gives you the desired range of proportionate values.
Before Custom Expression
After custom expression
Here is an option in VBScript (also works in ArcGIS Pro > Layer Labeling Properties)
Unlike the example in the above link, I didn't create new fields for the purpose, but did the calculation in the expression itself.
In the above example, 100000 is the factor divided by which my value field would result in values ranging from 6 to 18 (approx.). You could choose the factor that gives you the desired range of proportionate values.
Before Custom Expression
After custom expression
This is exactly what I’ve been looking for, thanks!
@JayantaPoddarhas what is essentially the only workaround at the moment. Your situation of wanting to change the label's font size is easily accomplished there, but labels do not currently support property connections for any label properties besides what can be done in the "<FNT>" tag.
If you think it would be helpful to simply peg a label property to an attribute or expression, I'd appreciate a vote in favor of my suggestion to implement this.