In ArcGIS Online, allow additional number formatting options for fields, specifically the ability to format a decimal as a percentage (%) for display in legend and elsewhere.
I can create an Attribute Expression, which allows for displaying a decimal as a % for pop-ups, but this converts the field to string and does not provide a solution for choropleth mapping/legends.
Here I have a numeric field (turnout bonus) with percentages stored as decimal values. I want the legend to display >100% - 128%, 75% - 100%, etc. This is basic functionality
The most logical place would be to add an option to the Formatting options to allow display as % (multiply by 100, add "%")
Alternatively, you could allow for custom editing of the legend. (Basically, the ability to click into the pre-set defaults and write my own text)
Yeah, it would be nice! Especially since % is so common in mapping.
My recollection is you have to format the number part and the label part both with 2 separate Arcade expressions to handle both labelling in the choropleth map and the legend. Very annoying.
Maybe somebody knows some magic to handle this?
Hi @kate_sightline , we have an internal issue to implement being able to use arcade expressions in the Legend. At the moment however, unless I misunderstood the question, I think you can do what you want to in the AGOL interface. If you go to the style options for the layer in question you should be able to click on and modify any of the class labels.
Went to publish a layer with a field in numeric format "percentage" and received warning 24134 (https://pro.arcgis.com/en/pro-app/latest/help/sharing/analyzer-warning-messages/24134-layers-pop-up-...).
Mind boggling! I am more amused than anything at the presence of this limitation, both by the fact that I have only now noticed this, and that you can't have fields representing percents in AGOL. Are we expected to just make a new field representing the decimals as percents innately?
There's not even an option to edit the field formatting to correct for this as @kate_sightline mentions! No button that would easily turn the numbers into percents as I expected to see when I noticed my percentage format was not preserved when publishing to AGOL.
Anyway, I got a good chuckle from this but I genuinely think it's a good idea. I would like to maintain my percentage numeric format when publishing to AGOL. Kudos from me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.