Hello Community,
I'm currently developing an ArcGIS Dashboard and encountering an issue with pie charts created using Arcade data expressions. Despite following various guidelines and attempting multiple solutions, the pie charts are not interactive with the map. Specifically:
- No Response to Map Interactions: Zooming and panning the map do not affect the pie charts.
- Pie Charts Not Listed in Map Actions: The pie charts do not appear as available options in the map's Map Actions settings within the dashboard.
What I've Done So Far
- Created Pie Charts Using Arcade Data Expressions:
- Categorized providers based on specific conditions.
Below is the current version of my Arcade data expression (sensitive information has been masked):
// Data expression for Service Provider Pie Chart
var fs = FeatureSetByPortalItem(
Portal('https://example-portal.com'),
'your-portal-item-id', // Replace with your actual Portal Item ID
0, // Layer ID
['Provider', 'Tons', 'State', 'ObjectId'], // Fields to include
false // Do not include geometry
);
// Group by categorized Provider and sum Tons
var providerTons = GroupBy(
fs,
[
{
name: 'Category',
expression: `
CASE
WHEN Provider IN ('Provider1', 'Provider2', 'Provider3', 'Provider4')
THEN Provider
WHEN (
Provider IN ('Provider5', 'Provider6', 'Provider7', 'Provider8', 'Provider9')
OR
(Provider = 'Provider10' AND State = 'StateX')
)
THEN 'Group1'
ELSE 'Others'
END
`
}
],
[
{
name: 'TotalTons',
expression: 'Tons',
statistic: 'SUM'
}
]
);
// Sort the results by TotalTons in descending order
var sortedProviderTons = OrderBy(providerTons, 'TotalTons DESC');
// Return the sorted results
return sortedProviderTons;Questions
- Missing Map Actions: Why are the pie charts not appearing as options in the map's Map Actions settings despite being created using data expressions?
- Interactivity Issues: What steps can I take to ensure that the pie charts respond to map interactions like zooming and panning?
- Role of Unique Identifiers: Is including a unique identifier like ObjectId necessary for enabling interactivity?
Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!