Select to view content in your preferred language

Use Arcade in Chart Variables

1413
4
08-24-2022 10:57 AM
Status: Implemented
Labels (1)
wayfaringrob
Honored Contributor

I would love to be able to use Arcade expressions to define/reclassify categories, numeric fields, and splits. Here's one example - my dataset doesn't have a year field, but it has a date field which contains a year (though does not show up in the dropdown at all). I'd like to see fatalities by city and year, so my only option right now is to create a year field and calculate it that way. This is a hosted feature layer, so that also requires making my own copy of it. Arcade could help take these steps out simply by entering the expression Year($feature.CRASH_DATE) in the Split by field.

rburkebsrc_0-1661363765224.png

4 Comments
ChristopherAllen

Hi @wayfaringrob ,

This is a great idea--in fact, adding Arcade expressions to charts is on our mid-term roadmap and should be available in an upcoming release! Here's a sneak peak where I've created an expression ("CRASH_YEAR") to extract the year from a date field and split the bar chart by this expression:

image.png

There will likely be limitations regarding which chart types and chart properties support Arcade expressions, but your use case should be covered.

Thanks,

Chris

wayfaringrob

@ChristopherAllen  neat, thanks for sharing!

DrewFlater
Status changed to: In Product Plan
 
AmeliaBradshaw
Status changed to: Implemented

This Idea has been implemented in ArcGIS Pro 3.1. Please see the What's New documentation for more new features in Pro 3.1.

The Ideas in ArcGIS Pro 3.1 blog will be wrapped up soon, highlighting all Ideas implemented in this release, including this one. Once complete, I will add the link to this comment.