I have a query that runs against a Feature layer to returns points in a SceneView via a DefinitionExpression (just saw, maybe deprecated, will look into that, but it works just fine)
These points could be one of 100 or so different categories and I'm trying to show how many of each category were returned. I have the initial count for each one using uniqueValues, but that works because at the start every item in every category is displayed.
Category1 (7)
Category2 (15)
Category3 (10)
After the filter is run, maybe Category1 only has 5 items now, Category2 has 10, etc.
If ArcGIS was a database I'd probably just query the fields I needed to calculate this when I initially pull in the data, store it in an array and just query that array to get my counts when things were updated so I wouldn't have to go back to the database, but ArcGIS doesn't let me do a straight up select statement that I'm aware of.
I'm looking for advice on how best to update these counts after a query is run, I can figure out how many total points were returned, but I need to be able to display how many in each category were returned from the query.