Distribution
Available
v1.0.0
Product Breakdown
Loan category mix
Live preview
Rendered from sample data fed via .data — exactly how your app feeds it.
Data contract
| Column | Type | Req |
|---|---|---|
| LoanCategory | 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-productbreakdown>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-productbreakdown/v1/afn-productbreakdown.js"></script>
<!-- 2. Drop the tag -->
<afn-productbreakdown id="w"></afn-productbreakdown>
<!-- 3. Feed your data -->
<script>
const el = document.querySelector('#w');
el.data = [
{"LoanCategory":"Conventional","TotalAmount":172000000},
{"LoanCategory":"FHA","TotalAmount":58000000},
{"LoanCategory":"VA","TotalAmount":41000000},
{"LoanCategory":"Jumbo","TotalAmount":34000000},
{"LoanCategory":"USDA","TotalAmount":12000000},
{"LoanCategory":"HELOC","TotalAmount":9000000}
];
</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.