✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Conditionally formatting dash Datatable with symbols

Hi

I created a interactive table using dash data table. Is it possible to apply a conditionally formatting dash data table that only shows the symbols and not the values of the table.eg

Hi,
I belive you are looking for “Special characters like emoji, stars, checkmarks, circles” chapter in https://dash.plotly.com/datatable/conditional-formatting

HI Niviral

Thanks for your response. I did have a look at Special characters like emoji. The issue is that example only shows where you create a new table based on certain conditions. It doesn’t show where you create special characters for the exist values across the various tables
I want to use similar code example as the below, but instead of colors what to use at Special characters like emoji
style_data_conditional=(
[
{
‘if’: {
‘filter_query’: ‘{{{}}} > {}’.format(col, value),
‘column_id’: col
},
‘backgroundColor’: ‘#3D9970’,
‘color’: ‘white’
} for (col, value) in df.quantile(0.1).iteritems()
] +
[
{
‘if’: {
‘filter_query’: ‘{{{}}} <= {}’.format(col, value),
‘column_id’: col
},
‘backgroundColor’: ‘#FF4136’,
‘color’: ‘white’
} for (col, value) in df.quantile(0.5).iteritems()
]
)
)