Perspective Table Component - Value Color

Hello All,

Is there a way to change the color of individual cell values within a table? I have a ‘value’ object member in my table bound to a tag, and I want to change the color of the ‘value’ based on the value of the tag e.g. if the tag value is above 80 then the cell displays a ‘red’ colored value, and if the tag value is below 80 then it displays a ‘green’ colored value. I’ve tried creating map transforms with both color and style as the output, but the value of my map displays the hex-code of the color, or simply a set of {} brackets. I found that the ‘bodyStyle’ property will change the color of ALL the table values, but I am needing to change the color of individual cells. As always, any help/info is greatly appreciated.

You need to format it where each row has each column containing a value and style. Below is an example of a single row with two columns serial and scheduled.

[
  {
    "serial": {
      "style": {},
      "value": 8190967
    },
    "scheduled": {
      "style": {
        "backgroundColor": "orange"
      },
      "value": "someValue"
    }
  }
]

Examine the JSON on the default data when you insert a table. "Folsom" has styling and everything else is plain. Also, see: