Interactive Dashboards with Plotly and Streamlit
Explore how to build an interactive product analytics dashboard using Plotly and Streamlit. Learn to create dynamic line charts that update based on user-selected platforms and date ranges. Understand how to filter data, maintain data integrity, and display key performance indicators to communicate daily active user trends effectively.
We'll cover the following...
Static charts answer one prepared question, but stakeholders often need to ask a different one immediately. They may want to see daily active users for iOS only, compare Web with Android, or inspect one week rather than the full month. An interactive dashboard is a view where someone changes controls and sees the displayed results update without editing Python code.
This lesson builds one small product-analytics app from a 30-day table of daily active users, abbreviated as DAU, for Web, iOS, and Android. Plotly creates the interactive line chart. Streamlit supplies the app page, filter controls, and chart display. The result has one chart and two controls, which keeps the connection between a selection and its effect visible.
Start with an interactive Plotly chart
Before adding filters, we need a chart that represents every row in the DAU table correctly. The table contains date, platform, and ...