SatcherInstitute / health-equity-tracker

Health Equity Tracker is a free-to-use data visualization platform that is enabling new insights into the impact of COVID-19 and other social and political determinants of health on historically underrepresented groups in the United States.
https://healthequitytracker.org/
MIT License
17 stars 24 forks source link

Need map drilldown on "how-to" #3581

Open benhammondmusic opened 2 months ago

benhammondmusic commented 2 months ago

on the policy hub for gun violence we have included "how-to" explanations for all cards. To launch we have left off the functionality where a user can click a state from the national level to change the report locations.

If/when we move these how-to demos to reflect the tracker more generally, or even if not but we have time, we should enable this functionality and explain how it works. For the FIPS callback, that’s whats used by the card to allow users to click on a state from the national level and change reports to view that state. I think that’s important functionality and especially since this is a “how to” we should include that info… but it would be confusing to explain that’s how it works, but then have the interactive demo not reflect it. I think we can add the initial FIPS using useState, and then update it with the FIPS callback to re-render the map on the clicked location? Thoughts?