In ArcGIS Javascript 4.5.
I have been trying to visualize the yearly data that are stored in fields, as below:
![](/legacyfs/online/385571_pastedImage_1.png)
Then I found it is very hard for the server to load data from another field each time. Since I am making animated map, the rendering time is just too long. Afterwards I saved all the fields into one, then using Arcade to read the needed fields.
![](/legacyfs/online/385572_pastedImage_2.png)
For different year, value Expression in visualVariables will be updated.Using Arcade.
![](/legacyfs/online/385573_pastedImage_3.png)
This is where renderer of a feature layer will be changed:
![](/legacyfs/online/385580_pastedImage_4.png)
But this does not make any changes to the visualization. The renderer works for the first time, but stays the same afterwards.
![](/legacyfs/online/385581_pastedImage_5.png)
So here are my question:
1. how is this possible? Renderer is changed( seen from cosole.log) but the output is not changed? which properties of a renderer can be changed? What should I do to make it render again?
2.Is there any other way to read data faster in order to make a smooth animation?
Thanks a lot!