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 it to the appropriate input and output components in the Dash app below line 44.
  • Ensure the DataFrame is not overwritten in the triggered callback function below line 50.
  • Conditionally use the input to filter the InvoiceDate column of the sales DataFrame below line 53.
  • Return the created figure to render in the Dash app below line 62.