I have a service that gives a layer that has many fields. How do I use the JS API to dynamically display a heat-map with color based on the sum of two or more fields? It does not have to be strictly creating a new field on the fly if that's impossible, as long as I can display the color of polygon for each heat-map feature based on the sum of multiple fields for each feature.
Thanks.
Update: I am able to achieve the above using Arcade Expression and Renderers.