ArcGIS Pro – Trim Symbology Label Decimal Places with Arcade

arcadearcgis-prolabeling

I have an issue trying to symbolise a layer with graduated symbols using a custom expression:

  1. I am limited to using arcade/there are no other languages in the
    drop down which I don't believe should be the case.
  2. An arcade custom expression, even $feature['FieldName'], is producing correct values/band but the corresponding labels have 6 decimal places appended where using the field alone (no custom expression) is not. No casting and/or round, trim or replace etc will fix this.

I am using ArcGIS Pro 2.0.1.

I can manually edit the labels but any changes I make to symbology will bring back the decimal places.

Best Answer

In your symbology pane, click the hamburger icon in the top-right corner and select Advanced

enter image description here

In the advanced symbology settings pane uncheck "Pad with zeros", and then click the back arrow.

enter image description here

Your labels should now be without all the extra decimal places.

enter image description here

The default number of decimal places appears to be 6. If you do still want to see some decimals, but less than 6, go back into the Advanced settings, set your Rounding > Decimal places to another number, e.g. 2, and leave Pad with zeros checked, your labels should now be padded with only 2 decimal places.

enter image description here

Related Question