Skip to content
New issue

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

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

Already on GitHub? # to your account

Map coloring values incorrect. #28

Open
kisaacs opened this issue Feb 10, 2022 · 5 comments
Open

Map coloring values incorrect. #28

kisaacs opened this issue Feb 10, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@kisaacs
Copy link
Member

kisaacs commented Feb 10, 2022

I was trying out some of the map values and got data that doesn't seem to match:

I look for "Percentile" values such as "Percentile Cancer Risk" and some of the areas have values over 99.
Similarly, I looked for "Pct" values such as "Pct. Minority Population" and I got values over 1.

You can see these as the darker color ones in the view. I think we may be manipulating the data in some incorrect way and/or sorting it strangely.

@TT1603

@kisaacs kisaacs added the bug Something isn't working label Feb 10, 2022
@kisaacs
Copy link
Member Author

kisaacs commented Feb 10, 2022

Oh and I checked in the table view and the values don't have the range in there, so it's just the "Data Value" that I get when I mouseover. I don't know if the map coloring is correct or not, but the mouseover value is incorrect.

@TT1603
Copy link

TT1603 commented Feb 11, 2022

So currently we're calculating the value in each tract (clickable area) by summing all the values of locations in that tract. This works for a lot of values like the concentration of minerals or the total number of something, but not for percentile.
How would we handle this case? I think we may need to process data in different ways for different sets too...

@kisaacs
Copy link
Member Author

kisaacs commented Feb 17, 2022

  1. Adding a note here about some areas showing up as black despite there being data.
  2. We shouldn't have to sum any longer because the Gardenroots data should already be anonymized, so I think we should just show the smaller area (e.g., block group) rather than the tract. Then we won't have to sum at all, just show the data.

Thanks!

@kisaacs
Copy link
Member Author

kisaacs commented Feb 17, 2022

  1. There seems to be an overlapping range issue with the chosen colors, where sometimes an area with a higher value has a lighter color than one with a lesser value. See the two screenshots of "Total Population" below. The upper left selection has ~10,000 and is a middle color but the lower dark area has the darkest color but only ~6,000 (@jwwood3 found this).

Screen Shot 2022-02-17 at 1 44 28 PM

Screen Shot 2022-02-17 at 1 44 34 PM

@kisaacs
Copy link
Member Author

kisaacs commented Aug 22, 2022

@TT1603 Reminder now that you're back on the project :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants