How to pass data to cellRenderer

I have a column that I am changing its color using the following keys in my column definitions

'cellStyle': {"function": "heatMap(params)"},
'cellRendererParams': {"min": df[s].min(), "max": df[s].max(), "flag": with_color},

This works good when the column is numerical. How could I color a textual column, with numerical values? I need to pass the data to cellRendererParams I suppose, but I canโ€™t figure out how.

Thank you