AFN AFN Widgets
Gallery
KPI Available v1.0.0

Key Metrics Scorecard

Key performance metrics

Live preview

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

Data contract

ColumnTypeReq
Label string
Value number
Sub string
Format 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-keymetricsscorecard>) -->
<script type="module" src="https://widgets-d.afnai.com/cdn/afn-keymetricsscorecard/v1/afn-keymetricsscorecard.js"></script>

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

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"Label":"Funded Volume","Value":386000000,"Format":"money"},
    {"Label":"Pull-Through","Value":19.7,"Format":"percent","Sub":"company 22%"},
    {"Label":"Avg Loan","Value":412000,"Format":"money"},
    {"Label":"Units","Value":938,"Format":"count"},
    {"Label":"Net Margin","Value":2.6,"Format":"percent"},
    {"Label":"Locks","Value":1240,"Format":"count"}
  ];
</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.