Skip to main content
100%

Fork of Line Chart for ILINet Flu Surveillance Data

✓ Published1🌍 Public
RRobert Johnson
Last edited Nov 2, 2021
Created on Nov 2, 2021

This interactive visualization explores ILINet flu surveillance data across U.S. states using multiple coordinated views. A scatter plot maps weekly ILI percentages against weeks of the year, using color to distinguish years and circle size to encode total patient counts. A U.S. map, bar chart, and curve chart provide additional perspectives on regional and temporal patterns. Built with React and D3 v5, the visualization uses `scaleLinear`, `scaleOrdinal`, `scaleBand`, and `geoPath` to render SVG marks, with dropdown menus to select different data attributes. The data is loaded from a CSV source via d3.csv.

AI-generated description

This visual use D3.js and React to display a scatter plot using multiple channels and add a menu to choose different fields in the dataset for visualization. The Data used here is the ILINet Flu Surveillance Dataset.

In this ILINet Flu Surveillance dataset, we have ILITOTAL to indicate the number of patients recorded by the network. The %UNWEIGHTED ILI is actually the ratio to total number of patients served. Clearly this value could be large if the base numbers are small. In the single plot, we show all data by the week of the year since 2015. Each data point represent a state on the same week, different color indicates different years. We also assigned the ILITOTAL number to the size channel, which maps the bigger size to larger number of patients. From the plot we can see that the big size mostly happens at the end of the year till at the beginning of the year, which is the flu season. Although the %ILI data indicates similar results, the size gives more sharper results. Also the points at the bottom of the weeks are all smaller, which allows us to visualize the bigger patients’ number more easily on the plot, it happens on both end of each week’s line because the data with smaller number of patient are generally ignorable.

This plot is comparable with original visualization that uses the vega-lite-api.

The original data comes from the webpage: CDC FluView Interactive.

MIT Licensed

Similar vizzes