1. Learn
  2. /
  3. Courses
  4. /
  5. Building Dashboards with Dash and Plotly

Connected

Exercise

Styling a key stats table

The finance department head loved the key stats table you created for them previously. However, being a big fan of Excel, he has requested some additional formatting of the table.

Specifically, he has requested:

  • All the cell contents should align on the left.
  • The background of the cells should be black with white text.

Instructions

100 XP
  • Apply styling to all cells using the cellStyle parameter in defaultColDef below line 23.
  • Style cells to be left aligned using the textAlign property below line 25.
  • Style cells with a black background and white text using the backgroundColor and color properties below line 27.