Enriching Data Visualizations with Annotations in Plotly
summary
Uses Plotly 5.1.0 and Plotly Express to annotate a Johns Hopkins COVID-19 subset for India and the United States, adding hover_data and a bottom-left footnote (showarrow=false, font size 10, gray, br for line breaks). Marks Thanksgiving at day 310, highlights the US holiday window with a vrect 305–357 (yellow, opacity set), flags the Jan 2 peak and vaccine rollout with boxed annotations (border, opacity, text offsets), demos templates (plotly_dark), and publishes code to the GitHub repo pyohio-plotly.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:40Data setup and loading
- 1:26Basic plotly charting
- 2:20Chart customization
- 3:27Adding a basic footnote
- 4:47Advanced annotations
- 6:39Visual highlights
- 7:37Line and box overlays
- 8:48Applying dark templates
- 9:15Conclusion
related talks
41mHealthPlot: Understanding American public health through R
01h 38mEffective Data Visualization
37mData visualization with plotly py: Version 3 and beyond
48mData Visualization in Practice
25m(Easier) Interactive Data Visualization in React
01h 55mUse your data to tell stories
14mUnlock the Power of DataViz Animation and Interactivity in Quarto
40mData Visualizations, Internationalization and Covid-19
