AFN AFN Widgets
Gallery
Operations Available v1.0.0

Leakage by Department

Leakage $ by department

Live preview

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

Data contract

ColumnTypeReq
Category string
Value number
Series string

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

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

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"Category":"Underwriting","Series":"Rate","Value":42000},
    {"Category":"Underwriting","Series":"Fees","Value":28000},
    {"Category":"Underwriting","Series":"Other","Value":15000},
    {"Category":"Closing","Series":"Rate","Value":31000},
    {"Category":"Closing","Series":"Fees","Value":19000},
    {"Category":"Closing","Series":"Other","Value":11000},
    {"Category":"Post Closing","Series":"Rate","Value":24000},
    {"Category":"Post Closing","Series":"Fees","Value":16000},
    {"Category":"Post Closing","Series":"Other","Value":8000},
    {"Category":"Compliance","Series":"Rate","Value":18000},
    {"Category":"Compliance","Series":"Fees","Value":12000},
    {"Category":"Compliance","Series":"Other","Value":6000}
  ];
</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.