Quantcast
Channel: ЁЯОЫя╕П Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271
тЖз

Datatable - cells format like percent (%) ('format' in style_data_conditional doesn't work)

$
0
0

@Masya wrote:

Hi!

I need to add percent symbol in one row of datatable.
How can i add тАШformatтАЩ: FormatTemplate.percentage(1) in the next code

style_data_conditional=[
                    {
                        'if': {
                            'row_index': 3,
                            'column_id': i,
                            'filter_query': '{' + str(i) + '} > 100'
                        },
                        'backgroundColor': '#99EE6B'
                    } for i in col_list
                ] + [
                    {
                        'if': {
                            'row_index': 3,
                            'column_id': i,
                            'filter_query': '{' + str(i) + '} < 100',
                            },
                            'backgroundColor': '#FF7373',
                    } for i in col_list
                ]

Posts: 5

Participants: 2

Read full topic

тЖз

Viewing all articles
Browse latest Browse all 6271

Trending Articles