Skip to content

Commit

Permalink
Merging ACS 2022 updates to staging (#1149)
Browse files Browse the repository at this point in the history
* Epic/13898 pff (#1097)

* make start:local-api command

* update readme with start:local-api command

* update table variables that changed

* Place shells of tables
Fill pop table with variables

* add mutually-exclusive table variables

* place all decennial variables into tables

* remove space from decennial male var

* add formatting to tables. remove unused tables

* write tooltips

* bar charts

* Updated label to complete AB#14528

* Added much of CCD selection type functionality required for map page

* update choropleths with abbreviated variables

* SASS division updated

* Implemented correct selection explode functionality for CCDs

* point to remote api and local layers

* Updated selection summary for CCDs at the top of data explorer page.

* Disabled ACS in dropdown for CCDs

* Specify decimal places for pop density
Remove special property for decennial props

* use divider type for empty rows

* Updated about page text. Completes AB#14714

* Fix for attempting to load ACS data for geotypes without ACS data. Completes AB#14496.

* update census topics in explorer

* Updated map layers portion of About page

* remove percent from special variables

* Added pop pyramid for census data. Completes AB#14724

* Updated Decennial Census text.

* check whether previous sum is null

* hide percents for special variables

* mark ratios as special

* Upgraded packages

* Revert "point to remote api and local layers"

This reverts commit 1c67326.

---------

Co-authored-by: dhochbaum-dcp <[email protected]>

* Bugs/epic 13898 (#1099)

* remove moe from decennial pop pyramid

* fix pop pyramid for previous years

* Task 14578
Dialog text for Fall 2023 DHC updates

* prevent the rendering of 2010 census household type chart

* prevent any decennial comparisons from being marked insignificant

* Epic/13898 pff (#1097) (#1098) (#1101)

* make start:local-api command

* update readme with start:local-api command

* update table variables that changed

* Place shells of tables
Fill pop table with variables

* add mutually-exclusive table variables

* place all decennial variables into tables

* remove space from decennial male var

* add formatting to tables. remove unused tables

* write tooltips

* bar charts

* Updated label to complete AB#14528

* Added much of CCD selection type functionality required for map page

* update choropleths with abbreviated variables

* SASS division updated

* Implemented correct selection explode functionality for CCDs

* point to remote api and local layers

* Updated selection summary for CCDs at the top of data explorer page.

* Disabled ACS in dropdown for CCDs

* Specify decimal places for pop density
Remove special property for decennial props

* use divider type for empty rows

* Updated about page text. Completes AB#14714

* Fix for attempting to load ACS data for geotypes without ACS data. Completes AB#14496.

* update census topics in explorer

* Updated map layers portion of About page

* remove percent from special variables

* Added pop pyramid for census data. Completes AB#14724

* Updated Decennial Census text.

* check whether previous sum is null

* hide percents for special variables

* mark ratios as special

* Upgraded packages

* Revert "point to remote api and local layers"

This reverts commit 1c67326.

---------

Co-authored-by: Tyler Matteo <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>

* remove banner text for archive note

* Add banner with link to sign up for user interviews

* Remove margin from info banner

* Remove sign up banner (#1115)

* issue/16067 updated initial pop-up greeting with new copy

* Add missing comma to netlify.toml

* Remove signup banner (#1142)

* Remove sign up banner

* Update to env to fix citynet issue

* Issue/16067 PFF Updates Trunk Branch (#1135)

* Population FactFinder 2018-2022 ACS & 2020 DDHC-A Updates

* issue 1130 updated category stops

* issue 1129 updated category stops for Pop65pl

* Issue 1125 update year references

* issue/1138 update copy on special note in data source menu

* issue/1138 update copy on special note in data source menu

* Revert "issue/1138 update copy on special note in data source menu"

This reverts commit 5e749f7.
"This reverts the pre-update banner message already in develop"

* issue/1127 updated and added to asian subgroups

* Issue 1125 remove extra end quotations

* issue 1146 Updated ACS Places of Birth

* Issue 1132
 - Added Detailed Race and Ethnicity (DT&E) decennial variables
 - DT&E variables are loaded and viewed when viewing data

* Issue 1133 added sub header text to DT&E header

* Issue 1124 Update about page copy

* Issue#1128 display acs data for ccds

* fix build issue on netlifty

---------

Co-authored-by: pratishta <[email protected]>

* Updated pop-up copy

---------

Co-authored-by: Timothy Miller <[email protected]>
Co-authored-by: dhochbaum-dcp <[email protected]>
Co-authored-by: horatio <[email protected]>
Co-authored-by: Horatio <[email protected]>
Co-authored-by: pratishta <[email protected]>
  • Loading branch information
6 people authored Mar 11, 2024
1 parent 2c4e005 commit ca978a5
Show file tree
Hide file tree
Showing 16 changed files with 1,333 additions and 238 deletions.
43 changes: 21 additions & 22 deletions app/choropleth-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ const choroplethConfigs = [
'#e54444',
],
},
{
group: 'Demographic (ACS)',
id: 'pop65pl1',
label: '65 Years and Over',
tooltip: 'Population 65 years and over',
legendTitle: 'Population 65 years and over',
stops: [
'#f2f2a2',
4000,
'#efc68a',
8000,
'#e99963',
12000,
'#e56d44',
15000,
'#e54444',
],
},
{
group: 'Social (ACS)',
id: 'ea_bchdh',
Expand Down Expand Up @@ -84,7 +66,7 @@ const choroplethConfigs = [
legendTitle: 'Percent foreign-born population',
stops: [
'#f2f2a2',
25,
20,
'#efc68a',
35,
'#e99963',
Expand Down Expand Up @@ -139,13 +121,13 @@ const choroplethConfigs = [
label: 'Below Poverty (percent)',
tooltip: 'Percent of population whose income is below the poverty level',
legendTitle: 'Percent of population below poverty level',
stops: ['#f2f2a2', 12, '#efc68a', 20, '#e56d44', 40, '#e54444'],
stops: ['#f2f2a2', 15, '#efc68a', 30, '#e56d44', 40, '#e54444'],
},
{
group: 'Housing (ACS)',
id: 'mdgr',
label: 'Median Gross Rent',
tooltip: 'Median gross rent (in 2020 inflation-adjusted dollars)',
tooltip: 'Median gross rent (in 2022 inflation-adjusted dollars)',
legendTitle: 'Median Gross Rent',
stops: ['#f2f2a2', 1500, '#efc68a', 2000, '#e56d44', 2500, '#e54444'],
},
Expand Down Expand Up @@ -188,6 +170,24 @@ const choroplethConfigs = [
'#e54444',
],
},
{
group: 'Census',
id: 'pop65pl',
label: '65 Years and Over',
tooltip: 'Population 65 years and over',
legendTitle: 'Population 65 years and over',
stops: [
'#f2f2a2',
4000,
'#efc68a',
6000,
'#e99963',
8000,
'#e56d44',
10000,
'#e54444',
],
},
{
group: 'Census',
id: 'wnh',
Expand Down Expand Up @@ -645,7 +645,6 @@ const MINIMUM_RACIAL_COUNT = 5000;
// For all other variables, or for racial group percent change when the count is above the minimum,
// fill color is simply determined by the "steps" array
const buildPaintFill = (id, minimum, stops) => {

const racialPercentChangeIds = ['wnh_pc', 'bnh_pc', 'anh_pc', 'hsp1_pc'];

return racialPercentChangeIds.includes(id)
Expand Down
2 changes: 1 addition & 1 deletion app/components/explorer/source-select-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class SourceSelectDropdownComponent extends Component {
}

get showACS() {
if(['districts', 'blocks', 'ccds'].includes(this.args.geotype)) {
if(['districts', 'blocks'].includes(this.args.geotype)) {
return false;
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions app/components/map-utility-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export default Component.extend({
})
}

// Reset the source for geotypes that do not have ACS data
if ((['ccds', 'districts'].includes(type)) && (['acs-current', 'acs-previous', 'acs-change'].includes(queryParams['source']))) {
// Reset the source for geotypes that do not have ACS data.
if ((['districts'].includes(type)) && (['acs-current', 'acs-previous', 'acs-change'].includes(queryParams['source']))) {
queryParams['source'] = 'decennial-current';
}

Expand Down
Loading

0 comments on commit ca978a5

Please sign in to comment.