PROBLEM
When labeling a layer in ArcGIS Online Map Viewer, the specified number of decimal places for a number field is not accurately reflected in the labels. Instead, the labels display precise numbers, disregarding the configured decimal places. This compromises the intended precision and consistency in the map presentation.
In the map below, although the GiZScore field is configured to two decimal places, the labels display all the decimal places from the original data.
The configuration for the number of decimal places applies only to the fields. The field formatting settings, which affect pop-ups and the attribute table of the layer, do not extend to labeling in ArcGIS Online Map Viewer. The labels are configured independently; therefore, the specified number of decimal places configured in the field formatting is not reflected in the labels.
Follow the steps below to configure the number of decimal places in the feature layer label in ArcGIS Online Map Viewer.
Round($feature.<field name>,<decimal places number>)
In ArcGIS Online Map Viewer, the label is displayed with the configured number of decimal places, as demonstrated below.
Get help from ArcGIS experts
Download the Esri Support App