KPI
Available
v1.0.0
Upcoming Commissions
Projected commission KPIs
Live preview
Rendered from sample data fed via .data — exactly how your app feeds it.
Data contract
| Column | Type | Req |
|---|---|---|
| Period | string | ✓ |
| Amount | number | ✓ |
| LoanCount | 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-commissions>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-commissions/v1/afn-commissions.js"></script>
<!-- 2. Drop the tag -->
<afn-commissions id="w"></afn-commissions>
<!-- 3. Feed your data -->
<script>
const el = document.querySelector('#w');
el.data = [
{"Period":"Aug 1-15","Amount":128000,"LoanCount":42},
{"Period":"Aug 16-31","Amount":156000,"LoanCount":51},
{"Period":"Sep 1-15","Amount":141000,"LoanCount":47},
{"Period":"Sep 16-30","Amount":168000,"LoanCount":55},
{"Period":"Oct 1-15","Amount":152000,"LoanCount":49},
{"Period":"Oct 16-31","Amount":179000,"LoanCount":58}
];
</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.