{
  "alt": "County map of the United States shaded by the spread of precinct margins inside each county. Spread is highest in counties of Mississippi and Alabama, with scattered high-spread counties in the Southwest and the Plains, and it is higher on average in counties that contain large cities ({fact:sd_metro1} points) than in the least urban counties ({fact:sd_open} points). A second view colors the same counties by two-party margin.",
  "caption": "Darker counties have precinct margins that vary more. Of the {fact:n_sd_top} counties with a spread of {fact:cut_sd_top} points or more, {fact:n_sd_top_msal} are in Mississippi or Alabama, and the rest include counties in Arkansas, Arizona, South Dakota, Utah, Montana and Nebraska. Spread is the standard deviation of a county's precinct margins, weighted by each precinct's two-party votes, across the {fact:n_counties_disp} counties with a spread. Use the switch to see the counties by margin.",
  "data": [],
  "id": "county_sd_map",
  "notes": [
    "Counties with fewer than {fact:cut_floor_units} reporting units ({fact:n_below_floor} of the {fact:n_counties} in the sample), the {fact:n_out_la} Louisiana parishes, {fact:n_out_other} other counties whose precinct rows do not match the certified total, Alaska and Kansas City, Missouri are drawn as no data.",
    "A county near the floor of {fact:cut_floor_units} reporting units has a spread that one unit can move a long way.",
    "Full counts of votes: there is no sampling, so county margins and spreads carry no sampling error."
  ],
  "source": "MIT Election Data and Science Lab, 2024 precinct-level presidential returns; county totals summed from the precincts; full counts of votes, not survey estimates, so nothing is weighted except by two-party votes where stated",
  "spec": {
    "fips": "fips",
    "legendLabel": "Spread of precinct margins inside the county (points)",
    "payload": "county_sd_map.json",
    "scale": {
      "domain": [
        0,
        60
      ],
      "palette": "seq",
      "type": "sequential"
    },
    "tooltipKeys": [
      "margin",
      "precincts"
    ],
    "value": "sd",
    "valueFormat": {
      "digits": 1
    }
  },
  "subtitle": "Vote-weighted standard deviation of precinct margins inside each county, 2024, in points of two-party margin; counties with at least {fact:cut_floor_units} reporting units",
  "title": "Spread inside counties is widest in Mississippi and Alabama and scattered across the Southwest and Plains",
  "type": "county-map",
  "views": [
    {
      "id": "spread",
      "label": "Spread inside the county"
    },
    {
      "caption": "Democratic counties are blue and Republican counties red. Compare it with the spread view: the counties with the widest spread are neither the reddest nor the bluest. Hover a county for its margin, its spread and its number of precincts.",
      "id": "margin",
      "label": "County margin",
      "spec": {
        "legendLabel": "Democratic minus Republican margin (points)",
        "scale": {
          "domain": [
            -40,
            40
          ],
          "palette": "party",
          "type": "diverging"
        },
        "tooltipKeys": [
          "sd",
          "precincts"
        ],
        "value": "margin",
        "valueFormat": {
          "digits": 1,
          "signed": true
        }
      },
      "title": "The counties with the widest spread are neither the reddest nor the bluest"
    }
  ],
  "width": "full"
}
