chapter seven

7 The CEO strikes back: Supercharging the dashboard

 

This chapter covers

  • Critically evaluating an app and addressing user feedback
  • Adding flexibility to Streamlit visualizations
  • Improving usability by making frequently used features easy to access
  • Creating modal dialogs in Streamlit
  • Using query parameters to enable deeplinks in a Streamlit app

No software is perfect at launch. Instead, developers refine it over time, fixing bugs and adding new features incrementally. The projects in this book are no exception.

In the previous chapter, we created a metrics dashboard for a company called Note n’ Nib. Now, we’ll review user feedback, critically assess the app, and make targeted improvements. Along the way, we’ll explore advanced Streamlit visualizations, introduce modal dialogs and query parameters, and learn how to build an advanced, flexible dashboard.

If chapter 6 was about launching a dashboard based on user requirements, chapter 7 is about landing it, addressing users’ concerns, and iterating on the app to ensure quality and satisfaction.

7.1 Feedback on the dashboard

7.2 Granularity in the time series chart

7.2.1 Enabling different time granularities

7.2.2 Creating a time grain selector

7.3 Interdependent filters

7.4 Date range comparisons

7.4.1 Adding another date range selector

7.4.2 Showing the comparison in the metric bar

7.5 A drilldown view

7.5.1 Inserting a modal dialog

7.5.2 Designing the content of the drilldown

7.5.3 Implementing the drilldown view

7.6 Enabling deeplinks

7.6.1 Using st.query_params

7.6.2 Setting widget defaults through st.session_state

Summary