AFN AFN Widgets
Gallery
Production Available v1.0.0

Weekly Activity

Three-ring weekly scorecard

Live preview

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

Data contract

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

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

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"Label":"Applications","Value":12,"Goal":15,"Format":"count"},
    {"Label":"Pre-Approvals","Value":9,"Goal":10,"Format":"count"},
    {"Label":"Funded","Value":6,"Goal":8,"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.