Distribution
Available
v1.0.0
Loan Purpose
Purpose-type share of volume
Live preview
Rendered from sample data fed via .data — exactly how your app feeds it.
Data contract
| Column | Type | Req |
|---|---|---|
| PurposeType | string | ✓ |
| TotalAmount | 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-loanpurpose>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-loanpurpose/v1/afn-loanpurpose.js"></script>
<!-- 2. Drop the tag -->
<afn-loanpurpose id="w"></afn-loanpurpose>
<!-- 3. Feed your data -->
<script>
const el = document.querySelector('#w');
el.data = [
{"PurposeType":"Purchase","TotalAmount":148000000},
{"PurposeType":"Cash-Out Refinance","TotalAmount":63000000},
{"PurposeType":"Rate/Term Refinance","TotalAmount":42000000},
{"PurposeType":"Construction","TotalAmount":18000000},
{"PurposeType":"HELOC","TotalAmount":14000000},
{"PurposeType":"Renovation","TotalAmount":9500000}
];
</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.