AFN AFN Widgets
Gallery
Geographic Available v1.0.0

Funding by County

Funded volume by county

Live preview

Rendered from sample data fed via .data — exactly how your app feeds it.

Data contract

ColumnTypeReq
County string
Funded number
Label string

Emits ready, error and widget-select when a mark is clicked — wiring up drill-down.

Embed code

URL:
Colours:
<!-- 1. Load the widget (self-registers <afn-fundingcounties>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-fundingcounties/v1/afn-fundingcounties.js"></script>

<!-- 2. Drop the tag -->
<afn-fundingcounties id="w"></afn-fundingcounties>

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"County":"06037","Funded":68000000,"Label":"Los Angeles, CA"},
    {"County":"48201","Funded":51000000,"Label":"Harris, TX"},
    {"County":"48113","Funded":47000000,"Label":"Dallas, TX"},
    {"County":"36061","Funded":44000000,"Label":"New York, NY"},
    {"County":"04013","Funded":42000000,"Label":"Maricopa, AZ"},
    {"County":"12086","Funded":39000000,"Label":"Miami-Dade, FL"},
    {"County":"17031","Funded":37000000,"Label":"Cook, IL"},
    {"County":"06073","Funded":33000000,"Label":"San Diego, CA"},
    {"County":"53033","Funded":31000000,"Label":"King, WA"},
    {"County":"06059","Funded":29000000,"Label":"Orange, CA"},
    {"County":"08031","Funded":28000000,"Label":"Denver, CO"},
    {"County":"48453","Funded":26000000,"Label":"Travis, TX"},
    {"County":"13121","Funded":24000000,"Label":"Fulton, GA"},
    {"County":"32003","Funded":22000000,"Label":"Clark, NV"},
    {"County":"37119","Funded":21000000,"Label":"Mecklenburg, NC"},
    {"County":"12011","Funded":20000000,"Label":"Broward, FL"},
    {"County":"39049","Funded":19000000,"Label":"Franklin, OH"},
    {"County":"12057","Funded":18000000,"Label":"Hillsborough, FL"}
  ];
</script>

v1 gets non-breaking fixes automatically; a breaking change bumps to the next major and never touches your embed. Bring-your-own-data: your app feeds the rows via .data. Integration guide — framework setup, versioning and the origin allowlist.