Last week, I found data from The Health Inequality Project detailing the average life expectancy for people who live in various states in America, male and female. I took the information from that dataset and plotted it into an interactive map of the United States.
I’m still troubleshooting some problems with the tooltip, which allows users to hover over each state and display the data from that particular state. I seem to be having trouble pulling the data from the corresponding CSV.
Here is the full index.js code: