Status component and setting mapped colors

I am trying to set dynamic colours using a mapped array in the colorByIndex property for a Status component.

If I put an array of colours in the box the value gets set to an array of nulls as per this screenshot.

If I just put a single value in the box then the array gets filled with that value as per"

Not sure what I need to enter to fill the array with values for each index.

I think the colour field only accepts a single value, not an array. So what you'll need to do is give it the index (i) within the array of colours, eg :smiley:
{{ ['red', 'green', 'blue'][i] }}

If I'm understanding you correctly

perfect, thanks.