Commit 1706b5e
Fix spatial docs: real Census data, chart alignment, pin mkdocs <2 (#307)
* Fix spatial docs: real Census data, chart alignment, pin mkdocs <2
- Replace fake/random dot density data with real ACS race/ethnicity data
for Alameda County via pypums.get_acs() + as_dot_density()
- Fix projection misalignment by deriving county boundary from dissolved
tract geometries (inline GeoJSON) instead of external topojson
- Update all output blocks (get_acs, attach_geometry, dot density) to
match actual Census API responses (values, column order, NAME format)
- Fix choropleth legend formats: population "~s" (10M), income "$~s" ($50k)
- Pin mkdocs>=1.6,<2 to prevent incompatible mkdocs 2.x installation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Address PR review: extract inline data, fix projection and caption
- Move 12K lines of inline dot data to docs/assets/alameda-dots.json
(spatial.md drops from 13K to 1K lines)
- Keep county boundary inline (small, avoids projection auto-fit issue)
- Fix projection mismatch: code example now uses mercator to match chart
- Clarify dots_per_value difference between code (100) and preview (500)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use dots_per_value=500 in code example to match preview chart
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Externalize boundary data to alameda-boundary.json
Replace 250 lines of inline boundary coordinates with URL reference.
spatial.md drops from 1,254 to 1,008 lines.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 32bccef commit 1706b5e
File tree
5 files changed
+122
-183
lines changed- docs
- assets
- guides
5 files changed
+122
-183
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Large diffs are not rendered by default.
0 commit comments