Method to customize row or cell background color when using a dataset on perspective table

Hello Everyone,

Fairly new to perspective still. I have a table where the data source is fixed - I.E. I manually added an array object to the data prop. Since there's only 8 rows it's a pretty straightforward thing, and I can easily change the background color of each cell in a row based on some external tag. All works great.

I have another table where I want to mimic that behavior but it's a much bigger table and so I point the data property to a query to populate the data. But now I don't see an easy way to dynamically alter the rows/cells. What am I missing?

Thanks in advance!

You will need to add a script transform to recreate your table data in a JSON structure with style objects included.

There are a couple of examples in the user manual

2 Likes