==============================================================================
IS DC CRIME DROP REALLY DUE TO TRUMP AND NATIONAL GUARD?
Embed code — interactive chart
==============================================================================

HOW TO USE THIS FILE

- This story has ONE interactive embed: a line chart, "Violent crime rates
  declined for years," comparing violent crime rates in D.C. and other large
  U.S. cities over time. The chart is hosted by The Beam; you host nothing.
- Paste the embed code below into a single Custom HTML / Raw HTML / Embed
  block in your CMS, at the spot marked in the .rtf:
     [CHART EMBED 1 — Violent crime rates declined for years (city time-series lines) — goes here]
- Copy the code exactly as shown, from "<iframe" through "</iframe>". Do not
  edit it.
- The iframe has a fixed height of 530px, sized to fit the chart on most
  screens. It will display correctly with no extra code.
- OPTIONAL: The chart can also report its exact height so the iframe resizes
  itself (useful on narrow phone screens). To enable that, paste the optional
  resizer script (Section 2 below) once on the page, in the same Custom HTML
  block as the iframe, directly after it. Some CMSs (free WordPress.com,
  locked-down corporate CMSs) strip <script> tags — if yours does, skip it;
  the chart still works at its fixed height.


------------------------------------------------------------------------------
1. CHART EMBED 1 — Violent crime rates declined for years
------------------------------------------------------------------------------

PLACEMENT: In the "Complicated picture" section, directly after the
paragraph that begins:
   "But with crime continuing to ease, critics say the case for an ongoing
   military presence is getting weaker."
and before the paragraph that begins:
   "Since the spike in 2023, Hahn said, ..."

EMBED CODE:

<iframe id="district-lookup" class="beam-embed" src="https://thebeam.org/wp-content/uploads/2026/10/city-time-series-lines-v1.html
" title="…" height="530" loading="lazy" scrolling="no" style="width:100%;border:0;display:block;overflow:hidden"></iframe>


------------------------------------------------------------------------------
2. OPTIONAL — Auto-resize script (paste once, after the iframe)
------------------------------------------------------------------------------

<script>
(function () {
  if (window.__beamEmbedResizerInstalled) return;
  window.__beamEmbedResizerInstalled = true;

  window.addEventListener('message', function (e) {
    if (!e.data || e.data.type !== 'beam-embed-height') return;
    if (typeof e.data.height !== 'number' || e.data.height < 1) return;

    var frames = document.getElementsByTagName('iframe');
    for (var i = 0; i < frames.length; i++) {
      if (frames[i].contentWindow === e.source) {
        frames[i].style.height = e.data.height + 'px';
        return;
      }
    }
  });
})();
</script>


==============================================================================
Questions: Mark Greenblatt - mark.greenblatt@asu.edu
           Lauren Mucciolo - lauren.mucciolo@asu.edu
==============================================================================
