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

Connected

Exercise

A date picker callback

Oh no! It has happened again. The date picker dashboard you created has become corrupted, and the callback code is unreadable.

Can you recall how to integrate a date picker component with a callback to get the dashboard back on track?

Instructions

100 XP
  • Create a callback and link the sale_date component to the sales_cat graph below line 31.
  • Conditionally use the input_date parameter to filter the InvoiceDate column of the sales DataFrame below line 38.
  • Return the bar_fig_major_cat figure to render in the Dash app below line 45.