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

Connected

Exercise

Interactive sales dashboard tables

The overarching sales dashboard has come such a long way since you began.

The dashboard has been sent far and wide in the company with some very positive reviews. However, there have been some requests to make the tabular component more interactive. There has been a request to add the ability to select a certain column and have this change the axis on the scatter plot below.

Instructions

100 XP
  • Enable single row selection in the grid by setting the rowSelection parameter below line 25.
  • Create a callback below line 63 that will use the selectedRows from my_grid to update the scatter_compare figure with the selected country highlighted as a large red dot.