title: Plotly Dash: data_table background color for individual cell
body: <p>I display in a <code>dash_table.DataTable</code> a dataframe where there is a column with color names in hex format, with this code:</p>
  
  <pre><code>import dash
  import dash_table
  import pandas as pd
  
  df = pd.DataFrame(data = dict(COLOR = ['#1f77b4', '#d62728', '#e377c2', '#17becf', '#bcbd22'],
                                VALUE = [1, 2, 3, 4, 5]))
  
  app = dash.Dash(__name__)
  
  app.layout = html.Div([dash_table.DataTable(id = 'table',
                                              columns = [{"name": i, "id": i} for i in df.columns],
                                              data = df.to_dict('records'))],
                        style = dict(width = '200px'))
  
  if __name__ == '__main__':
      app.run_server()
  </code></pre>
  
  <p>This is what I get:</p>
  
  <p><a href="https://i.stack.imgur.com/OALqB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OALqB.png" alt="enter image description here"></a></p>
  
  <p>I would like to set the background color (and maybe the font color) of each individual cell with its content, but only for that column (which is always the first column of the table) in order to get this:</p>
  
  <p><a href="https://i.stack.imgur.com/M6XH6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M6XH6.png" alt="enter image description here"></a></p>
  
  <p>To me is ok to replace the <code>dash_table.DataTable</code> with <code>plotly.graph_objects.Table</code> (<a href="https://plotly.com/python/table/" rel="nofollow noreferrer">documentation</a>), which maybe it is more customizable; provided that I can implement the <code>plotly.graph_objects.Table</code> in a <code>dash</code> dashboard.</p>
  
  <p>Version info:</p>
  
  <pre><code>Python               3.7.0
  dash                 1.12.0
  dash-table           4.7.0
  plotly               4.7.0
  </code></pre>