{ "cells": [ { "cell_type": "markdown", "id": "cab8a9b5", "metadata": {}, "source": [ "# Accessibility Atlas -- Data Exploration\n", "\n", "Disability demographics, web accessibility compliance, assistive technology usage, employment data, education statistics, and AAC resources.\n", "\n", "**Datasets included:**\n", "- US Census disability by county (3,222 counties, ACS 2022)\n", "- US Census disability by state (52 states, ACS 2021)\n", "- US Census national disability characteristics (S1810, 2022)\n", "- US Census disability trends (2017-2022)\n", "- US Census disability by race/ethnicity (9 groups, 2022)\n", "- WHO Healthy Life Expectancy (185 countries, 2000-2021)\n", "- Eurostat EU disability prevalence (36 countries)\n", "- BLS disability employment (2024)\n", "- IDEA special education (7.5M students, 51 states)\n", "- WebAIM Million 2025 (top 1M website accessibility audit)\n", "- WebAIM Screen Reader Survey #10 (1,539 respondents, 2024)\n", "- ADA digital accessibility lawsuits (2017-2024)\n", "- Section 508 federal compliance (245 agencies)\n", "- AAC symbol library catalog (34 libraries)\n", "- VizWiz VQA (4,319 blind user questions)\n", "- WLASL sign language index (2,000 signs)" ] }, { "cell_type": "code", "execution_count": null, "id": "074c501c", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import json\n", "import matplotlib.pyplot as plt\n", "import matplotlib\n", "matplotlib.rcParams['figure.figsize'] = (12, 6)\n", "matplotlib.rcParams['font.family'] = 'sans-serif'" ] }, { "cell_type": "markdown", "id": "e8c8de94", "metadata": {}, "source": [ "## 1. US Disability by County (Census ACS 2022)\n", "\n", "3,222 US counties with disability rates broken down by 6 types." ] }, { "cell_type": "code", "execution_count": null, "id": "22a5220c", "metadata": {}, "outputs": [], "source": [ "counties = pd.read_csv(\"census_disability_by_county_2022.csv\", dtype={\"fips\": str})\n", "print(f\"Counties: {len(counties):,}\")\n", "print(f\"Total US population covered: {counties['total_population'].sum():,}\")\n", "print(f\"Total with disability: {counties['disability_total'].sum():,}\")\n", "print(f\"\\nDisability rate range: {counties['disability_rate'].min():.1f}% - {counties['disability_rate'].max():.1f}%\")\n", "counties.head()" ] }, { "cell_type": "code", "execution_count": null, "id": "4625f23e", "metadata": {}, "outputs": [], "source": [ "# Top 15 counties by disability rate\n", "top = counties.nlargest(15, \"disability_rate\")[[\"county_name\", \"total_population\", \"disability_rate\"]]\n", "fig, ax = plt.subplots(figsize=(12, 6))\n", "ax.barh(range(len(top)), top[\"disability_rate\"].values, color=\"#2563eb\")\n", "ax.set_yticks(range(len(top)))\n", "ax.set_yticklabels(top[\"county_name\"].values)\n", "ax.set_xlabel(\"Disability Rate (%)\")\n", "ax.set_title(\"US Counties with Highest Disability Rates (ACS 2022)\")\n", "ax.invert_yaxis()\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": null, "id": "2c2b0281", "metadata": {}, "outputs": [], "source": [ "# Disability type breakdown (national totals)\n", "types = {\n", " \"Hearing\": counties[\"hearing_disability\"].sum(),\n", " \"Vision\": counties[\"vision_disability\"].sum(),\n", " \"Cognitive\": counties[\"cognitive_disability\"].sum(),\n", " \"Ambulatory\": counties[\"ambulatory_disability\"].sum(),\n", " \"Self-care\": counties[\"self_care_disability\"].sum(),\n", " \"Indep. Living\": counties[\"independent_living_disability\"].sum(),\n", "}\n", "fig, ax = plt.subplots(figsize=(10, 5))\n", "bars = ax.bar(types.keys(), [v/1e6 for v in types.values()], color=\"#2563eb\")\n", "ax.set_ylabel(\"People (millions)\")\n", "ax.set_title(\"US Disability by Type (Census ACS 2022)\")\n", "for bar, val in zip(bars, types.values()):\n", " ax.text(bar.get_x() + bar.get_width()/2, bar.get_height() + 0.3, \n", " f\"{val/1e6:.1f}M\", ha='center', fontsize=10)\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "1c830733", "metadata": {}, "source": [ "## 2. National Disability Characteristics (Census S1810, 2022)\n", "\n", "All 6 disability types with breakdowns by sex, race/ethnicity, and age." ] }, { "cell_type": "code", "execution_count": null, "id": "ef6933cf", "metadata": {}, "outputs": [], "source": [ "with open(\"census_disability_characteristics_2022.json\") as f:\n", " chars = json.load(f)\n", "\n", "print(f\"Overall: {chars['overall']['with_disability']:,} ({chars['overall']['rate_pct']}%)\")\n", "print(f\"\\nBy sex:\")\n", "for sex, data in chars['by_sex'].items():\n", " print(f\" {sex}: {data['rate_pct']}%\")\n", "print(f\"\\nBy race/ethnicity:\")\n", "for race, data in chars['by_race_ethnicity'].items():\n", " print(f\" {race}: {data['rate_pct']}% ({data['with_disability']:,})\")\n", "\n", "# Plot by race\n", "fig, ax = plt.subplots(figsize=(12, 5))\n", "races = list(chars['by_race_ethnicity'].keys())\n", "rates = [chars['by_race_ethnicity'][r]['rate_pct'] for r in races]\n", "labels = [r.replace('_', ' ').title() for r in races]\n", "bars = ax.barh(range(len(races)), rates, color=\"#2563eb\")\n", "ax.set_yticks(range(len(races)))\n", "ax.set_yticklabels(labels)\n", "ax.set_xlabel(\"Disability Rate (%)\")\n", "ax.set_title(\"US Disability Rate by Race/Ethnicity (2022)\")\n", "ax.axvline(x=13.4, color=\"#dc2626\", linestyle=\"--\", label=\"National avg (13.4%)\")\n", "ax.legend()\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": null, "id": "fd29b5a5", "metadata": {}, "outputs": [], "source": [ "# Disability rate by age group\n", "fig, ax = plt.subplots(figsize=(10, 5))\n", "ages = list(chars['by_age'].keys())\n", "rates = [chars['by_age'][a]['rate_pct'] for a in ages]\n", "labels = [a.replace('_', ' ').replace('to', '-') for a in ages]\n", "ax.bar(labels, rates, color=\"#059669\")\n", "ax.set_ylabel(\"Disability Rate (%)\")\n", "ax.set_title(\"US Disability Rate by Age Group (2022)\")\n", "for i, (r, l) in enumerate(zip(rates, labels)):\n", " ax.text(i, r + 1, f\"{r}%\", ha='center', fontsize=10)\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "a619875a", "metadata": {}, "source": [ "## 3. US Disability Trends (2017-2022)" ] }, { "cell_type": "code", "execution_count": null, "id": "3f16ef6f", "metadata": {}, "outputs": [], "source": [ "with open(\"census_disability_national_trends.json\") as f:\n", " trends = json.load(f)\n", "years = [d[\"year\"] for d in trends[\"data\"]]\n", "rates = [d[\"disability_rate_pct\"] for d in trends[\"data\"]]\n", "counts = [d[\"with_disability\"] for d in trends[\"data\"]]\n", "\n", "fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 5))\n", "ax1.plot(years, rates, 'o-', color=\"#2563eb\", linewidth=2, markersize=8)\n", "ax1.set_xlabel(\"Year\")\n", "ax1.set_ylabel(\"Disability Rate (%)\")\n", "ax1.set_title(\"US Disability Prevalence Trend\")\n", "ax1.annotate(\"COVID-19\\n(2020 data\\nnot released)\", xy=(2020, 13.0), fontsize=9, color=\"gray\", ha=\"center\")\n", "\n", "ax2.bar(years, [c/1e6 for c in counts], color=\"#059669\")\n", "ax2.set_xlabel(\"Year\")\n", "ax2.set_ylabel(\"People with Disability (millions)\")\n", "ax2.set_title(\"US Population with Disability\")\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "e43b2e51", "metadata": {}, "source": [ "## 4. BLS Disability Employment (2024)\n", "\n", "Employment, labor force participation, and unemployment rates by disability status." ] }, { "cell_type": "code", "execution_count": null, "id": "e05e533d", "metadata": {}, "outputs": [], "source": [ "with open(\"bls_disability_employment_2024.json\") as f:\n", " bls = json.load(f)\n", "\n", "stats = bls[\"overall_statistics\"]\n", "print(\"Employment Statistics (2024):\")\n", "for group in [\"with_disability\", \"without_disability\"]:\n", " s = stats[group]\n", " label = \"With disability\" if \"with\" in group else \"Without disability\"\n", " print(f\" {label}:\")\n", " print(f\" Labor force participation: {s.get('labor_force_participation_rate', 'N/A')}%\")\n", " print(f\" Employment-population ratio: {s.get('employment_population_ratio', 'N/A')}%\")\n", " print(f\" Unemployment rate: {s.get('unemployment_rate', 'N/A')}%\")\n", "\n", "# Plot comparison\n", "fig, ax = plt.subplots(figsize=(10, 5))\n", "metrics = [\"Labor Force\\nParticipation\", \"Employment-\\nPopulation Ratio\", \"Unemployment\\nRate\"]\n", "dis_vals = [stats[\"with_disability\"].get(\"labor_force_participation_rate\", 0),\n", " stats[\"with_disability\"].get(\"employment_population_ratio\", 0),\n", " stats[\"with_disability\"].get(\"unemployment_rate\", 0)]\n", "no_dis_vals = [stats[\"without_disability\"].get(\"labor_force_participation_rate\", 0),\n", " stats[\"without_disability\"].get(\"employment_population_ratio\", 0),\n", " stats[\"without_disability\"].get(\"unemployment_rate\", 0)]\n", "x = range(len(metrics))\n", "w = 0.35\n", "ax.bar([i - w/2 for i in x], dis_vals, w, label=\"With disability\", color=\"#dc2626\")\n", "ax.bar([i + w/2 for i in x], no_dis_vals, w, label=\"Without disability\", color=\"#2563eb\")\n", "ax.set_xticks(x)\n", "ax.set_xticklabels(metrics)\n", "ax.set_ylabel(\"Rate (%)\")\n", "ax.set_title(\"Disability Employment Gap (BLS 2024)\")\n", "ax.legend()\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "a1455d7b", "metadata": {}, "source": [ "## 5. IDEA Special Education (2022-23)\n", "\n", "7.5 million students served under the Individuals with Disabilities Education Act." ] }, { "cell_type": "code", "execution_count": null, "id": "c2a19c75", "metadata": {}, "outputs": [], "source": [ "with open(\"idea_special_education_2023.json\") as f:\n", " idea = json.load(f)\n", "\n", "print(f\"Total students: {idea['national_summary']['total_students_served']:,}\")\n", "print(f\"\\nDisability categories:\")\n", "for cat in idea[\"disability_categories\"]:\n", " print(f\" {cat['category']}: {cat['count']:,} ({cat['percentage']}%)\")\n", "\n", "# Plot categories\n", "cats = idea[\"disability_categories\"][:8] # Top 8\n", "fig, ax = plt.subplots(figsize=(12, 6))\n", "ax.barh(range(len(cats)), [c[\"count\"] for c in reversed(cats)], color=\"#6366f1\")\n", "ax.set_yticks(range(len(cats)))\n", "ax.set_yticklabels([c[\"category\"][:35] for c in reversed(cats)])\n", "ax.set_xlabel(\"Students Served\")\n", "ax.set_title(\"IDEA Special Education by Disability Category (2022-23)\")\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "4b82587f", "metadata": {}, "source": [ "## 6. WHO Healthy Life Expectancy (2000-2021)\n", "\n", "Years of healthy life (HALE) for 185 countries across 22 years." ] }, { "cell_type": "code", "execution_count": null, "id": "882a4bb7", "metadata": {}, "outputs": [], "source": [ "hale = pd.read_csv(\"who_hale_long.csv\")\n", "print(f\"Records: {len(hale):,}\")\n", "print(f\"Countries: {hale['country_code'].nunique()}\")\n", "print(f\"Years: {hale['year'].min()}-{hale['year'].max()}\")\n", "print(f\"\\nHALE range: {hale['hale_years'].min():.1f} - {hale['hale_years'].max():.1f} years\")\n", "\n", "region_avg = hale.groupby([\"region\", \"year\"])[\"hale_years\"].mean().reset_index()\n", "fig, ax = plt.subplots(figsize=(12, 6))\n", "for region in sorted(region_avg[\"region\"].unique()):\n", " subset = region_avg[region_avg[\"region\"] == region]\n", " ax.plot(subset[\"year\"], subset[\"hale_years\"], label=region, linewidth=2)\n", "ax.set_xlabel(\"Year\")\n", "ax.set_ylabel(\"Healthy Life Expectancy (years)\")\n", "ax.set_title(\"WHO Healthy Life Expectancy by Region (2000-2021)\")\n", "ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left', fontsize=8)\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "42ba59ec", "metadata": {}, "source": [ "## 7. Eurostat EU Disability Prevalence\n", "\n", "36 EU/EEA countries with disability prevalence rates and employment gaps." ] }, { "cell_type": "code", "execution_count": null, "id": "aa94c3c1", "metadata": {}, "outputs": [], "source": [ "with open(\"eurostat_disability_eu.json\") as f:\n", " eu = json.load(f)\n", "\n", "print(f\"Countries: {len(eu['countries'])}\")\n", "print(f\"EU27 summary: {eu['eu27_summary_2023']}\")\n", "\n", "# Plot top countries by disability rate\n", "countries_data = eu[\"countries\"]\n", "if isinstance(countries_data, list):\n", " sorted_c = sorted(countries_data, key=lambda x: x.get(\"total_disability_rate_pct\", 0) or 0, reverse=True)\n", " fig, ax = plt.subplots(figsize=(14, 8))\n", " names = [c.get(\"country\", c.get(\"name\", \"?\"))[:20] for c in sorted_c[:25]]\n", " rates = [c.get(\"total_disability_rate_pct\", 0) or 0 for c in sorted_c[:25]]\n", " ax.barh(range(len(names)), rates, color=\"#059669\")\n", " ax.set_yticks(range(len(names)))\n", " ax.set_yticklabels(names)\n", " ax.set_xlabel(\"Disability Rate (%)\")\n", " ax.set_title(\"EU/EEA Disability Prevalence by Country (Eurostat GALI)\")\n", " ax.axvline(x=eu['eu27_summary_2023'].get('total_disability_rate_pct', 26.9), \n", " color=\"#dc2626\", linestyle=\"--\", label=\"EU27 avg\")\n", " ax.legend()\n", " plt.tight_layout()\n", " plt.show()" ] }, { "cell_type": "markdown", "id": "a92d709e", "metadata": {}, "source": [ "## 8. WebAIM Million 2025\n", "\n", "Automated WCAG accessibility analysis of the top 1,000,000 website home pages." ] }, { "cell_type": "code", "execution_count": null, "id": "ba96d557", "metadata": {}, "outputs": [], "source": [ "with open(\"webaim_million_2025.json\") as f:\n", " webaim = json.load(f)\n", "\n", "print(f\"Pages tested: {webaim['summary']['total_pages_tested']:,}\")\n", "print(f\"Total errors: {webaim['summary']['total_errors_detected']:,}\")\n", "print(f\"Avg errors/page: {webaim['summary']['average_errors_per_page']}\")\n", "print(f\"Pages with failures: {webaim['summary']['pages_with_wcag_failures_pct']}%\")\n", "print(\"\\nMost common WCAG failures:\")\n", "for f_item in webaim[\"common_failures\"]:\n", " print(f\" {f_item['type']:30s} {f_item['pages_affected_pct']}% of pages\")\n", "\n", "trends = webaim[\"yearly_trends\"]\n", "fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 5))\n", "ax1.plot(trends[\"years\"], trends[\"pages_with_failures_pct\"], 'o-', color=\"#dc2626\", linewidth=2)\n", "ax1.set_xlabel(\"Year\")\n", "ax1.set_ylabel(\"Pages with Failures (%)\")\n", "ax1.set_title(\"WCAG Failure Rate Over Time\")\n", "ax1.set_ylim(90, 100)\n", "\n", "ax2.plot(trends[\"years\"], trends[\"low_contrast_pct\"], 'o-', label=\"Low Contrast\", linewidth=2)\n", "ax2.plot(trends[\"years\"], trends[\"missing_alt_text_pct\"], 's-', label=\"Missing Alt Text\", linewidth=2)\n", "ax2.plot(trends[\"years\"], trends[\"empty_links_pct\"], '^-', label=\"Empty Links\", linewidth=2)\n", "ax2.set_xlabel(\"Year\")\n", "ax2.set_ylabel(\"Pages Affected (%)\")\n", "ax2.set_title(\"Top WCAG Failures Over Time\")\n", "ax2.legend()\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "05e515ec", "metadata": {}, "source": [ "## 9. Screen Reader Users & AAC Resources" ] }, { "cell_type": "code", "execution_count": null, "id": "28bd14eb", "metadata": {}, "outputs": [], "source": [ "with open(\"webaim_screen_reader_survey_2024.json\") as f:\n", " survey = json.load(f)\n", "\n", "sr = survey[\"primary_screen_reader\"]\n", "fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 5))\n", "labels = [s[\"name\"] for s in sr if s[\"pct\"] >= 2]\n", "sizes = [s[\"pct\"] for s in sr if s[\"pct\"] >= 2]\n", "colors = [\"#2563eb\", \"#059669\", \"#6366f1\", \"#d97706\", \"#dc2626\", \"#8b5cf6\"]\n", "ax1.pie(sizes, labels=labels, autopct='%1.1f%%', colors=colors[:len(labels)])\n", "ax1.set_title(\"Primary Screen Reader (Desktop)\")\n", "\n", "# AAC symbol library comparison\n", "with open(\"aac_vocabulary_data.json\") as f:\n", " aac = json.load(f)\n", "libs = aac[\"symbol_libraries\"][\"libraries\"]\n", "lib_names = [l[\"name\"][:15] for l in libs if l[\"total_symbols\"] and l[\"total_symbols\"] > 100]\n", "lib_counts = [l[\"total_symbols\"] for l in libs if l[\"total_symbols\"] and l[\"total_symbols\"] > 100]\n", "ax2.barh(range(len(lib_names)), lib_counts, color=\"#d97706\")\n", "ax2.set_yticks(range(len(lib_names)))\n", "ax2.set_yticklabels(lib_names)\n", "ax2.set_xlabel(\"Number of Symbols\")\n", "ax2.set_title(\"AAC Symbol Libraries (Open-Licensed)\")\n", "plt.tight_layout()\n", "plt.show()" ] }, { "cell_type": "markdown", "id": "cc7c3e84", "metadata": {}, "source": [ "## 10. ADA Lawsuits & VizWiz" ] }, { "cell_type": "code", "execution_count": null, "id": "8a77930d", "metadata": {}, "outputs": [], "source": [ "with open(\"ada_digital_lawsuits.json\") as f:\n", " lawsuits = json.load(f)\n", "fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 5))\n", "ax1.bar(lawsuits[\"years\"], lawsuits[\"total_lawsuits\"], color=\"#dc2626\")\n", "ax1.set_xlabel(\"Year\")\n", "ax1.set_ylabel(\"Number of Lawsuits\")\n", "ax1.set_title(\"ADA Digital Accessibility Lawsuits (2017-2024)\")\n", "\n", "vizwiz = pd.read_csv(\"vizwiz_val_annotations.csv\")\n", "answer_types = vizwiz[\"answer_type\"].value_counts()\n", "ax2.bar(answer_types.index, answer_types.values, color=\"#6366f1\")\n", "ax2.set_xlabel(\"Answer Type\")\n", "ax2.set_ylabel(\"Count\")\n", "ax2.set_title(f\"VizWiz: Questions from Blind Users ({len(vizwiz):,} total)\")\n", "plt.tight_layout()\n", "plt.show()\n", "print(f\"VizWiz answerable: {vizwiz['answerable'].mean()*100:.1f}%\")" ] }, { "cell_type": "markdown", "id": "a25c7462", "metadata": {}, "source": [ "---\n", "\n", "**Author:** Luke Steuber | [lukesteuber.com](https://lukesteuber.com) | [@lukesteuber.com](https://bsky.app/profile/lukesteuber.com)\n", "\n", "**Source:** [Data Trove](https://dr.eamer.dev/datavis/data_trove/) at dr.eamer.dev" ] } ], "metadata": {}, "nbformat": 4, "nbformat_minor": 5 }