Hello,
I have a web map with feature layer connected to survey123. It has a numerical field 'cases' which provides count of HCV cases within each community polygon. I would like to show the polygons based on total cases reported so far via gradient of color. Example, polygon A has 4 survey records with cases value = 0,3,4 and 2 while polygon B has 5 cases values = 4, 1,3,2 and 2. So , total cases within polygon A = 9 while within polygon B = 12. As value of 'cases' keeps getting updating via response through survey123 and so does the total cases value within each polygon must be. For visualization, I want my symbology to dynamically get updated by showing darker color for polygon with higher number of total cases.
How can I write an arcade expression within the web map 'styles' setting to this done?
An update to my previously asked question. I started writing the code to iterate through each value within a field using For loop. The code is shown below:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Hello,
Could anyone please help me identify as to why '$feature.municipality_with_confirmed_new;' in the code in my previous reply only retrieving the very first municipality which had reported the case and not all the distinct municipalities with cases in the feature layer? I used Console($feature.municipality_with_confirmed_new;) to find out that it was only one municipality being pulled out.