Outbreaks in the US Timeseries
This multi-line time-series chart displays the monthly frequency of illnesses, hospitalizations, and deaths from US outbreak data, revealing clear seasonality with peaks in winter and lows in summer. The visualization aggregates the raw CSV data by summing each health metric per month, using the Vega-Lite API within a React framework to layer three distinct line marks. Interactive tooltips display exact aggregate values when hovering over any point on the lines, while a custom config adjusts axis styling for readability. The data is loaded and parsed with d3.csv.
AI-generated descriptionQuestion: Does the outbreak have the seasonality? Which months have highest frequency?
Answer: Yes, it does. The outbreak has high frequency in winter and reaches the bottom in summer.
Description of experience:
This time-series line plot shows the number of Illnessses, Hospitalizations and Deaths. At first I cleaned the data by concatenating "Year" and "Month" as timestamp. Second, I set layers in VegaLite API to draw multiple lines. And then modified them to make it better.
Interaction:
When mouse moves to the line, it will show the corresponding value at the point.