diff --git a/app/helpers/acs-cd-tooltip.js b/app/helpers/acs-cd-tooltip.js new file mode 100644 index 00000000..d44299cc --- /dev/null +++ b/app/helpers/acs-cd-tooltip.js @@ -0,0 +1,14 @@ +import { helper } from '@ember/component/helper'; +import { tooltipText } from '../tooltips/tooltip-text'; + +export function buildTooltip(data) { + const { + cd_short_title, + } = data[0]; + + const communityDistrictTooltip = tooltipText.acs.communityDistrict(cd_short_title); + + return communityDistrictTooltip; +} + +export default helper(buildTooltip); diff --git a/app/helpers/acs-floodplain-tooltip.js b/app/helpers/acs-floodplain-tooltip.js index a59679e4..9082fe4b 100644 --- a/app/helpers/acs-floodplain-tooltip.js +++ b/app/helpers/acs-floodplain-tooltip.js @@ -3,14 +3,12 @@ import { tooltipText } from '../tooltips/tooltip-text'; export function buildTooltip(data) { const { - puma, cd_short_title, } = data[0]; - const acsFloodplain = tooltipText.acs.acsFloodplain(puma); - const cdApproximation = tooltipText.acs.cdApproximation(cd_short_title); + const acsFloodplain = tooltipText.acs.acsFloodplain(cd_short_title); - return acsFloodplain.concat(cdApproximation); + return acsFloodplain; } export default helper(buildTooltip); diff --git a/app/helpers/acs-puma-cd-tooltip.js b/app/helpers/acs-puma-cd-tooltip.js deleted file mode 100644 index 79c2a139..00000000 --- a/app/helpers/acs-puma-cd-tooltip.js +++ /dev/null @@ -1,20 +0,0 @@ -import { helper } from '@ember/component/helper'; -import { tooltipText } from '../tooltips/tooltip-text'; - -export function buildTooltip(data) { - const { - puma, - cd_short_title, - shared_puma, - shared_puma_cd, - } = data[0]; - - const pumaTooltip = tooltipText.acs.puma(puma); - const cdApproximation = tooltipText.acs.cdApproximation(cd_short_title); - const cdApproximationShared = tooltipText.acs.cdApproximationShared(cd_short_title, shared_puma_cd); - - const concatenatedCdApproximation = shared_puma ? cdApproximationShared : cdApproximation; - return pumaTooltip.concat(concatenatedCdApproximation); -} - -export default helper(buildTooltip); diff --git a/app/templates/about.hbs b/app/templates/about.hbs index ffad4238..1b7edc64 100644 --- a/app/templates/about.hbs +++ b/app/templates/about.hbs @@ -15,7 +15,7 @@
Indicators were carefully selected to present a snapshot across a broad range of conditions related to city planning. The {{fa-icon "info-circle"}} icon reveals an indicator’s source. Indicators using data from the American Community Survey (ACS) are calculated at the Public Use Microdata Area (PUMA) level. PUMAs are geographic approximations of community districts, but their boundaries differ slightly. Use this map to compare PUMA and community district boundaries. Some community districts share a PUMA with another district, and will therefore display identical values for ACS indicators. These paired districts include: Manhattan 1 and 2; Manhattan 4 and 5; Bronx 1 and 2; and Bronx 3 and 6. ACS population estimates are not available for districts that share a PUMA because they cannot be reliably disaggregated to each individual district.
+Indicators were carefully selected to present a snapshot across a broad range of conditions related to city planning. The [i] icon reveals an indicator’s source. Most indicators rely on data from the American Community Survey (ACS) or Decennial Census. Community districts are NYC-specific geographic bounds, so the Census Bureau does not report data at the community district level. Instead, we need to compute community district estimates by approximating them from smaller census geographies. To do this, we aggregate data from blocks and block-groups based on a geographic lookup relating each census block and tract to the community district it falls within. Using this lookup, we aggregate count data, then recompute rate estimates and margins of error. This methodology is used to compute the intercensal total number of persons within a community district, which serves as the denominator for some non-ACS rate indicators (such as “crimes per 1000”).