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

Implement a way to reduce demographic toggle options #1529

Closed benhammondmusic closed 2 years ago

benhammondmusic commented 2 years ago

Is your feature request related to a problem? Please describe. Presently some data sets are not available for all three filter options SEX AGE RACE. For example, #1518 will only allow a view with breakdowns by race. Other data sets are missing some of these breakdown options at certain geographic levels (county, state, etc).

Describe the solution you'd like We currently do this conditionally for COVID Vaccines at the county level but it's inelegant and would be better to have a centralized list or object mapping VariableId to a list of suppressed toggle options or even hiding the demographic toggle altogether.

Eventually we might consider hiding / disabling demographic options per geographic level, but that would be more difficult

Describe alternatives you've considered The alternative is to leave all three options AGE SEX and RACE even though race is the only selection that will populate data into our visualizations. This means a screen full of "missing data" message. Is it helpful to allow the user to get to this type of page?

Additional context

benhammondmusic commented 2 years ago

Follow up, we are going to proceed with keeping the demogrpahic toggle in place but disabling the unavailable options. This serves two purposes: