I'm creating an animated bar chart pulling in dynamic data for daily covid numbers. I have my data in and mapped to a layer, and everything working as it should.
However, I need to duplicate the bar layer to correlate to the number of rows in the table. If I do this as it is now, I have to manually go through the code of each layer and increment the data row number being called.
every duplicated layer appears above of the original layer. With that in mind, I think it would be wise to:
1. Have only row-related layers in the comp.
2. After duplication is done, move new layer to the bottom of the stack.
3. Append your layer name with '("US " + (index-1) + "")' (since your values are starting from 0).
4. In such case, every new layer will be pointing to different data line.
As for the script - its doable for sure. All you need to do is just run a loop which does what I described above !