Distribution
Available
v1.0.0
Branch Employee Count
Headcount by type
Live preview
Rendered from sample data fed via .data — exactly how your app feeds it.
Data contract
| Column | Type | Req |
|---|---|---|
| EmployeeType | string | ✓ |
| Count | 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-branchemployees>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-branchemployees/v1/afn-branchemployees.js"></script>
<!-- 2. Drop the tag -->
<afn-branchemployees id="w"></afn-branchemployees>
<!-- 3. Feed your data -->
<script>
const el = document.querySelector('#w');
el.data = [
{"EmployeeType":"Loan Officer","Count":420},
{"EmployeeType":"Processor","Count":180},
{"EmployeeType":"Underwriter","Count":65},
{"EmployeeType":"Closer","Count":48},
{"EmployeeType":"Manager","Count":35},
{"EmployeeType":"Support","Count":90}
];
</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.