Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle Layer Population Visualization #237

Open
tgilcrest opened this issue Jul 30, 2020 · 5 comments
Open

Circle Layer Population Visualization #237

tgilcrest opened this issue Jul 30, 2020 · 5 comments

Comments

@tgilcrest
Copy link

We want to make layers available that visualize the demographic variables as choropleth maps of the geounits.

@tgilcrest
Copy link
Author

@jfrankl: I got a couple of pieces of feedback on the demographic choropleth layers:

  1. When you're drawing on the map with the demographic choropleth on, the gray selection on gray choropleth can make it kind of hard to distinguish between what is selected and what is just higher population. Any ideas that might make them more distinguishable?

e.g.
Selection with choropleth on:
image.png

Same selection with choropleth off:
image.png

  1. The scale for the every demographic seems to be the same so in parts where there are a lot of one demographic or not a lot of a demographic, you get something either all dark gray or all white. Do you think it would improve if we used color gradients that are relative to the demographic's scale? Not sure if that would help or if it would just introduce it's own problems.

e.g.
image.png
or
image.png

@jfrankl
Copy link
Contributor

jfrankl commented Aug 3, 2020

Good question. I'll explore during this sprint.

@jfrankl
Copy link
Contributor

jfrankl commented Oct 21, 2020

I think our best option for showing demographic data on the map would be using proportional circles. Circles allow us to distinguish from the fill color we use on the map to represent highlighted geounits.

To create these circles, we could use the same features that we currently use for population labels. Our vector tiles contain populations in string format (e.g. 245.6K), but we will need a different format for this sizing. One option would be to include the exact population (hispanic: 42112). An alternative is to preprocess the sizes; for example, we could give each feature a value from 0–9 (hispanic: 2 would be a smaller circle, hispanic: 9 would be the largest possible circle). The former would show more variation between sizes. The latter might the vector tiles smaller, but I'm not sure by how much. I suspect either would be fine, but we want might to test them.

We would also need a UI for toggling this layer, which is being designed by #477.

Mockups

Screen Shot 2020-10-21 at 1 59 03 PM
Screen Shot 2020-10-21 at 2 33 06 PM
Screen Shot 2020-10-21 at 2 33 38 PM

@jfrankl
Copy link
Contributor

jfrankl commented Oct 27, 2020

Why use circles instead of choropleth:

Remove visual conflict with selection

A choropleth layer conflicts with selecting geounits on the map. Both the selection and choropleth are indicated by shades of gray fill in the geounits. When both are present on the map, it's unclear which is selected and which is. See the screenshot below for an example of the confusion—it's unclear which geounits are selected and which are shaded by the choropleth.

Proportional circles get around this issue. The circles are visually distinct from the selected geounits, making it possible to read both on the same map.

district-0

Better representation across geographic sizes

A downside to a choropleth visualization is that it can be difficult to read smaller geographic areas, and it can misrepresent larger geographic areas as having larger populations. In Pennsylvania, for example, the rural blockgroups of the state have larger area, and the urban blockgroups are smaller. When zoomed out, it can be difficult to see the smaller blockgroups, and any shading in that area can be difficult to read. On the other hand, circles are not constrained by geounits, allowing them to be visualized consistently across the state.

In the screenshot below, compare these representations of Black population as a choropleth and as circles. With the choropleth, it is difficult to see the areas with higher concentration, because they are geographically smaller geounits. The circles, on the other hand, stand out on the map.

district-2

@tgilcrest tgilcrest changed the title Demographic Choropleth Layers Circle Layer Population Visualization Nov 24, 2020
@tgilcrest
Copy link
Author

@tgilcrest tgilcrest removed the design label Dec 10, 2020
@dmcglone dmcglone added the UI/UX These are issues that will impact the UI/EX of the app. label Jan 7, 2022
@dmcglone dmcglone added Enhancement and removed UI/UX These are issues that will impact the UI/EX of the app. labels Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants