HOW TO

Set the cell background color transparency with Arcade in ArcGIS Dashboards

Last Published: June 21, 2023

Summary

Arcade expressions can be used in ArcGIS Dashboards to customize how the data points appear in the list element.

This article provides the steps to set the background color transparency of the list element with Arcade in ArcGIS Dashboards. In this example, the field values in the Project Status field are referenced to determine the background color transparency for each field value in the Route Name field.

The image below shows the list element without the Arcade expression.

An example of the List element without the Arcade expression enabled

Procedure

  1. Open the ArcGIS Dashboards item. Click Layout on the dashboard toolbar, then the Options button Horizontal three dot icon next to the element. Click Configure.
The dashboard toolbar with the Layout tab
  1. Click List to open the List options menu, and click Enable.
Enabling the advanced formatting of the List element in ArcGIS Dashboards
  1. Specify the following Arcade expression in the Expression window.
// Edit the desired color transparency accordingly
var <variableName> = Decode($datapoint["<variable>"],
'<Field value 1>', '<hexadecimalColorCodeForTransparency1>',
'<Field value 2>', '<hexadecimalColorCodeForTransparency2>',
'<Field value 3>', '<hexadecimalColorCodeForTransparency3>',
'<Field value 4>', '<hexadecimalColorCodeForTransparency4>',
'')

return {
  backgroundColor: <variableName>
}
  1. Click Done.
Specifying the Arcade expression in the ArcGIS Dashboards Expression window

The image below shows the list element with the Arcade expression.

An example of the List element with the Arcade expression enabled

Article ID: 000030555

Software:
  • ArcGIS Online
  • ArcGIS Dashboards

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options