You can try to use Config from query results transformation.
In the example below (InfluxDB datasource) I added extra column with color that is populated basing on true / false value from column C:
And applied transformation and override for Cell type:
It’s possible to hide this extra column using additional transformation:


