AFN AFN Widgets
Gallery
Geographic Available v1.0.0

Funding by State

US choropleth of funded volume

Live preview

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

Data contract

ColumnTypeReq
State string
Funded number

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-fundingstates>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-fundingstates/v1/afn-fundingstates.js"></script>

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

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"State":"CA","Funded":62000000},
    {"State":"TX","Funded":48000000},
    {"State":"FL","Funded":39000000},
    {"State":"NY","Funded":15000000},
    {"State":"AZ","Funded":21000000},
    {"State":"CO","Funded":18000000},
    {"State":"WA","Funded":16000000},
    {"State":"NV","Funded":14000000},
    {"State":"GA","Funded":13000000},
    {"State":"NC","Funded":12000000},
    {"State":"IL","Funded":12000000},
    {"State":"OR","Funded":11000000},
    {"State":"VA","Funded":10000000},
    {"State":"PA","Funded":9000000},
    {"State":"UT","Funded":9000000},
    {"State":"OH","Funded":8000000},
    {"State":"TN","Funded":7000000},
    {"State":"ID","Funded":5000000}
  ];
</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.