Coronavirus Sentiment and Behavior Trends in 3 Charts
In this article
Visualizing the shift in coronavirus sentiment and behavior requires mapping qualitative emotional data and quantitative action data over a timeline. By using a combination of a line chart for sentiment, a stacked area chart for behavioral compliance, and a heat map for regional intensity, you can clearly demonstrate how public perception evolved from initial alarm to adaptation and eventual fatigue.
What You'll Need
- A dataset containing time-series data (dates, sentiment scores, and behavior metrics).
- Data visualization software (such as Microsoft Excel, Google Sheets, Tableau, or Power BI).
- Categorized sentiment labels (e.g., Fear, Hope, Anger, Indifference).
- Behavioral markers (e.g., mask usage rates, social distancing adherence, vaccination uptake).
Step-by-Step
- Prepare and Clean Your Data: Organize your data in a table where the first column is the date (daily or weekly intervals). Create separate columns for sentiment scores (usually a numerical value from -1 to 1 or 1 to 10) and behavioral percentages (0% to 100%). Ensure there are no gaps in the timeline to avoid breaks in your charts.
- Create Chart 1: The Sentiment Line Graph:
- Select your date column and your primary sentiment score column.
- Insert a Line Chart.
- Plot the "Sentiment Score" on the Y-axis and "Time" on the X-axis.
- This chart will show the overall emotional trajectory, highlighting peaks of high anxiety during new variant announcements and dips during periods of stability.
- Create Chart 2: The Behavioral Stacked Area Chart:
- Select the date column and multiple behavioral categories (e.g., "Strict Adherence," "Partial Adherence," and "Non-Adherence").
- Insert a Stacked Area Chart.
- This visualization shows the total volume of behavior while illustrating how the proportion of people following guidelines shifted over time. It effectively captures the "behavioral fatigue" phase where adherence percentages typically drop despite stable sentiment.
- Create Chart 3: The Sentiment-Behavior Heat Map:
- Create a matrix where the X-axis represents time and the Y-axis represents different regions or demographic groups.
- Apply conditional formatting (color scaling) to the cells based on a combined index of sentiment and behavior.
- Use a color gradient (e.g., deep red for high alarm/high compliance to pale green for low alarm/low compliance). This reveals geographic or social clusters where behavior changed faster or slower than the general sentiment.
- Synchronize the X-Axes: Align all three charts so they share the exact same time scale. This allows the viewer to look vertically across the charts to see, for example, if a spike in "Fear" (Chart 1) led to an immediate increase in "Strict Adherence" (Chart 2) in a specific region (Chart 3).
- Add Annotations: Place markers on the timeline for key external events (e.g., lockdown mandates, vaccine rollout dates). This provides the "why" behind the shifts seen in the data.
Common Mistakes
- Overcrowding the Line Chart: Trying to put ten different sentiment emotions on one line graph creates "spaghetti data" that is impossible to read. Stick to one aggregate sentiment score or a maximum of three primary emotions.
- Using Pie Charts for Time-Series: Pie charts show a snapshot in time, not a change. Never use them to show how sentiment evolved; always use line or area charts for temporal data.
- Ignoring Baseline Shifts: Failing to account for the fact that "normal" behavior changed. For example, mask-wearing became a baseline habit for some, meaning a drop in sentiment didn't always lead to an immediate drop in behavior.
- Confusing Correlation with Causation: Assuming that because sentiment dropped and behavior changed at the same time, one caused the other. Always label these as "trends" rather than "causes."
Tips
- Use Contrasting Colors: In the stacked area chart, use distinct colors (e.g., Dark Blue, Light Blue, Grey) to make the transition between adherence levels immediately obvious.
- Smooth the Data: If your daily data is too volatile (jagged lines), use a 7-day moving average to smooth the line chart. This makes the overall trend much easier to identify.
- Interactive Tooltips: If using Tableau or Power BI, add tooltips so users can hover over a data point to see the exact percentage or sentiment score for that specific date.
- Normalize Your Scales: Ensure the Y-axis on your sentiment chart starts and ends at logical points (e.g., -1 to 1) so that small fluctuations aren't visually exaggerated.
Troubleshooting
- Data Gaps: If your chart has holes or breaks, check for missing dates in your spreadsheet. Use linear interpolation to fill small gaps or leave them blank if the data is truly unavailable.
- Overlapping Labels: If X-axis dates are overlapping, change the label angle to 45 degrees or increase the chart width.
- Colors Not Distinguishable: If the heat map looks muddy, adjust the color palette to a "Sequential" scale (one color getting darker) rather than a "Diverging" scale (two different colors meeting in the middle).
- Software Lag: If the charts are slowing down your computer, reduce the granularity of the data from daily to weekly averages.
Frequently Asked Questions
Which chart is best for showing emotional change?
The line chart is the most effective because it clearly illustrates the rise and fall of a specific metric over a continuous period.
How do I handle qualitative data like "Happy" or "Sad"?
You must convert qualitative labels into quantitative scores (e.g., Sad = 1, Neutral = 2, Happy = 3) before you can plot them on a chart.
What is the difference between sentiment and behavior in these charts?
Sentiment is how people feel (internal), while behavior is what people do (external). The charts aim to show if feelings actually drive actions.
Can I combine these into one single chart?
It is not recommended. Combining sentiment scores and behavioral percentages on one axis creates confusion because they use different scales. Using three separate but aligned charts is the professional standard.
Why use a heat map instead of another line chart?
A heat map allows you to see patterns across multiple groups (like different cities or age brackets) simultaneously without having dozens of overlapping lines.