Tuesday, 15 September 2015

arcgis desktop - How to create label with variable size in ArcMap?


I'd like to create a circle label in ArcMap in the middle of each Polygon feature in my map document to shows the value of a particular attribute associated with that feature (like number of available stations). I'd like to represent the number of stations by the size of the label, so that the larger number of station in a particular feature is represented by the larger circle in that feature. Is there any possibility in ArcMap to do so? any help would be much appreciated.



Answer



You would do this by setting up a formatting expression for the labels you want to create.


This Knowledgebase article has a pretty thorough breakdown: HowTo: Include table fields in a VBScript label expression and use those values as dynamic font properties


This is what a sample expression from that page would look like. It is VBScript, but can be easily adapted to use Python. As you can see, the [Text Size] field is being referenced to set the size of the label.


Label expression


Here is the help document for more info on label expressions: ArcGIS 10.1: Building Label Expressions


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...