Hi there,
I have a list widget in an ArcGIS Online dashboard and I'm looking to alternate the colors of the list lines based on the ObjectID. For instance, even numbers as color 1 and odd numbers as color2.
I've tried using Boolean(oid % 2) but haven't yet had any success. I'm in the "going in circles" stage of trying to figure things out, can anyone please help me out with a snippet I can build upon?
Much appreciated.
Solved! Go to Solution.
An expression like this should work under Advanced Formatting
IIF($datapoint["OBJECTID"]%2==0,'black','gray')
An expression like this should work under Advanced Formatting
IIF($datapoint["OBJECTID"]%2==0,'black','gray')
Thank you!! Works like a charm.