Populating dynamic column settings from query or transformer

I’m trying to apply dynamic styling to the results of a pivot query – for which I don’t know all the column names in advance. The “Column settings” textbox is pretty tiny and given my presumed need to iterate over keys in my queryresults.data, I’m trying to offload the logic into a Transformer or JS Query.

In this screenshot, see how the table element inspector resolves the Transformer value just fine.
image

The problem is – the first time the table renders, my styles are not applied. If I click the table “refresh” button, the styles get applied on second render.

Is this a bug or feature? It seems like the transformer results haven’t been computed yet at time of first table render; is there any way to make this work?

Thanks in advance!
Phil