Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Dash table : Compare two columns and use style_data_conditional

$
0
0

I want to compare two string columns . I want the “Suggested Specification” column value to be red if the value of “Suggested Specification” == “Specification”

I have written this and its not running :

style_data_conditional=[       {
     'if': {'column_id': 'Suggested Specifications',
     'filter_query': '{Suggested Specifications} == {Specifications}'},  
    'backgroundColor': '#3D9970',
     'color': 'white'}]

It not working and following is the error :

unable to evaluate target: syntax tree is invalid for query={Suggested Specifications} == {Specifications}

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles