colorado-cancer-center / ecco

An interactive resource for exploring cancer data in Colorado
https://coe-ecco.org
Apache License 2.0
1 stars 2 forks source link

Map, scale colors are inconsistent across geographies, measures #49

Closed falquaddoomi closed 6 months ago

falquaddoomi commented 8 months ago

From Jan (paraphrased): It can be disorienting to see the colors change as you select different measure categories, measures, and geographic groupings (county vs. tract). Since the colors depend on the dataset, you can't use specific colors as a means to compare across different measures.

Background: The map colors are generated by taking the minimum and maximum values (aka the "extent") of the currently-visible dataset, then generating a set number of steps between. Some measures are percentages, while others are literal values.

Options:

vincerubinetti commented 8 months ago

This is my gut feeling on this:

The behavior we have now should remain the default behavior. I think it's natural and expected that if you change a measure (or any other "input"), the map/scale visibly changes. It's different data. We're talking about catering to a narrower scenario (I think) in which someone is switching from one measure to a directly related one -- for example black vs. white cancer incidence -- and seeing the difference. That said, I still think this is a good option to have somehow, especially given the key nature of that example. Regardless of the solution we choose, I think the behavior should be opt-in by the user, so they're aware they've done something that might prevent them from seeing data properly (e.g., they're looking at a per 100k measure then switch to a % measure and now all the data is compressed to the bottom sliver of the range, so they see no different colors).

I'm leaning toward the following solution:

Have two number boxes above the "More Options" called "Min/max". They start off in "automatic" mode where they reflect the true min/max range of the selected data. Once the user edits one or both of them, though, they set them to "manual" mode, and a little button appears next to them to reset to auto, and they will not change until the user clicks that.

I feel that we should not get into the hairiness that arises from trying to "smartly" figure out what the "global" range should be for the measure the user is viewing. Not only are there different types of values (%s vs. per 100k vs. absolute count vs. rankings), but there are different subjective groupings (e.g., perhaps "asthma" and "binge drink" shouldn't maintain the same range for some ideological reason, even though they are both risk factors and %s). Unless someone can come up with a simple and consistent way to make it clear to the user (and ourselves) -- like, "the range will always be global to the measure category, and if you change that, the range will also change" -- we should probably not do this. It would also add work for Faisal (to calc the min/max from some grouping of measures instead of a single one) that may not be worth it.

janolowery commented 7 months ago

This sounds reasonable, Vince. Lets keep as is for now. We can consider changing after getting broader feedback if needed. Thank you for weighing in.