Hello Community -
I am new to Arcade and not a developer and I am working with the List element in the ARCGIS Operations Dashboard. I have a dataset that includes hospital types that I would like to have an icon in front of the hospital name in my list. For example, for Type A, I would like a red star, for Type B, I would like a green triangle, etc ; then the Hospital name. I have other fields I would like to display such as volumes.
Any suggestions on how to accomplish this are much appreciated.
Assuming you have a map element in your dashboard and your list is referencing a layer in the map element, the easiest way is to configure the layer in your web map to have the symbology you want to see in the list.
Then under your list's configuration options, go to the List section > Line item icon > Symbol. This is also the same area where you can configure what details appear in your list. https://doc.arcgis.com/en/dashboards/get-started/list.htm
You can use advanced formatting, which requires some coding. See this post: https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/pushing-the-limits-of-arcade-in-da...
If you're not comfortable with the coding, then a workaround is to add a map but stack it underneath something else so that you can reference the map layer in the list, but not make the map so visible
I have reviewed the blog post...is there anything simpler you can point me to? As a novice, I don't think I'm ready to "push the limits". I understand the map reference, however, I have 70 unique dashboards to roll out and I'm trying to minimize the number of steps.
The map is your easiest, most straightforward approach.
The other option is to configure the symbology on the feature layer (under Item Details > Visualization > Change Style). This sets the default symbology if you were to add this layer to any web map and can be leveraged in your List element as well. However if you change the feature layer's symbology in the future, the symbology on your dashboard would also change.
Alternatively, you can create a layer view and do the same thing. The benefit of doing a layer view is you don't have to add a map element to your dashboard, but then you have a layer view to manage.