AFN AFN Widgets
Gallery
Operations Available v1.0.0

Conditions

By category and mark

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

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

<!-- 3. Feed your data -->
<script>
  const el = document.querySelector('#w');
  el.data = [
    {"Category":"Credit","Series":"Prior to Doc","Value":12},
    {"Category":"Credit","Series":"Prior to Fund","Value":8},
    {"Category":"Credit","Series":"At Closing","Value":3},
    {"Category":"Income","Series":"Prior to Doc","Value":18},
    {"Category":"Income","Series":"Prior to Fund","Value":10},
    {"Category":"Income","Series":"At Closing","Value":4},
    {"Category":"Assets","Series":"Prior to Doc","Value":9},
    {"Category":"Assets","Series":"Prior to Fund","Value":6},
    {"Category":"Assets","Series":"At Closing","Value":2},
    {"Category":"Property","Series":"Prior to Doc","Value":14},
    {"Category":"Property","Series":"Prior to Fund","Value":7},
    {"Category":"Property","Series":"At Closing","Value":3}
  ];
</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.